8000 minor #7359 Use preferred spelling for "cannot" (greg0ire) · symfony/symfony-docs@c4ac64c · GitHub
[go: up one dir, main page]

Skip to content

Commit c4ac64c

Browse files
committed
minor #7359 Use preferred spelling for "cannot" (greg0ire)
This PR was merged into the 2.7 branch. Discussion ---------- Use preferred spelling for "cannot" "can not" is technically correct (see http://www.dailywritingtips.com/cannot-or-can-not/), but less recommended, it seems. Commits ------- 18e7934 Use preferred spelling for "cannot"
2 parents de5f7bc + 18e7934 commit c4ac64c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

components/console/helpers/dialoghelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ You can also ask and validate a hidden response::
156156

157157
$validator = function ($value) {
158158
if ('' === trim($value)) {
159-
throw new \Exception('The password can not be empty');
159+
throw new \Exception('The password cannot be empty');
160160
}
161161

162162
return $value;

components/console/helpers/questionhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ You can also use a validator with a hidden question::
299299
$question = new Question('Please enter your password');
300300
$question->setValidator(function ($value) {
301301
if (trim($value) == '') {
302-
throw new \Exception('The password can not be empty');
302+
throw new \Exception('The password cannot be empty');
303303
}
304304

305305
return $value;

components/process.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Use :method:`Symfony\\Component\\Process\\Process::disableOutput` and
323323

324324
.. caution::
325325

326-
You can not enable or disable the output while the process is running.
326+
You cannot enable or disable the output while the process is running.
327327

328328
If you disable the output, you cannot access ``getOutput()``,
329329
``getIncrementalOutput()``, ``getErrorOutput()`` or ``getIncrementalErrorOutput()``.

components/var_dumper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ of your application may just break it by e.g. sending HTTP headers or
9191
corrupting your view, the bundle configures the ``dump()`` function so that
9292
variables are dumped in the web debug toolbar.
9393

94-
But if the toolbar can not be displayed because you e.g. called ``die``/``exit``
94+
But if the toolbar cannot be displayed because you e.g. called ``die``/``exit``
9595
or a fatal error occurred, then dumps are written on the regular output.
9696

9797
In a Twig template, two constructs are available for dumping a variable.

controller/soap_web_service.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ How to Create a SOAP Web Service in a Symfony Controller
88

99
Setting up a controller to act as a SOAP server is simple with a couple
1010
tools. You must, of course, have the `PHP SOAP`_ extension installed.
11-
As the PHP SOAP extension can not currently generate a WSDL, you must either
11+
As the PHP SOAP extension cannot currently generate a WSDL, you must either
1212
create one from scratch or use a 3rd party generator.
1313

1414
.. note::

doctrine/event_listeners_subscribers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ interface and have an event method for each event it subscribes to::
207207

208208
.. tip::
209209

210-
Doctrine event subscribers can not return a flexible array of methods to
210+
Doctrine event subscribers cannot return a flexible array of methods to
211211
call for the events like the :ref:`Symfony event subscriber <event_dispatcher-using-event-subscribers>`
212212
can. Doctrine event subscribers must return a simple array of the event
213213
names they subscribe to. Doctrine will then expect methods on the subscriber

reference/forms/types/button.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The following options are defined in the
2929
:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BaseType` class.
3030
The ``BaseType`` class is the parent class for both the ``button`` type
3131
and the :doc:`form type </reference/forms/types/form>`, but it is not part
32-
of the form type tree (i.e. it can not be used as a form type on its own).
32+
of the form type tree (i.e. it cannot be used as a form type on its own).
3333

3434
.. include:: /reference/forms/types/options/button_attr.rst.inc
3535

reference/forms/types/form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ The following options are defined in the
150150
:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BaseType` class.
151151
The ``BaseType`` class is the parent class for both the ``form`` type and
152152
the :doc:`button type </reference/forms/types/button>`, but it is not part
153-
of the form type tree (i.e. it can not be used as a form type on its own).
153+
of the form type tree (i.e. it cannot be used as a form type on its own).
154154

155155
.. include:: /reference/forms/types/options/attr.rst.inc
156156

0 commit comments

Comments
 (0)
0