Skip to content

Use preferred spelling for "cannot" #7359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/console/helpers/dialoghelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ You can also ask and validate a hidden response::

$validator = function ($value) {
if ('' === trim($value)) {
throw new \Exception('The password can not be empty');
throw new \Exception('The password cannot be empty');
}

return $value;
Expand Down
2 changes: 1 addition & 1 deletion components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ You can also use a validator with a hidden question::
$question = new Question('Please enter your password');
$question->setValidator(function ($value) {
if (trim($value) == '') {
throw new \Exception('The password can not be empty');
throw new \Exception('The password cannot be empty');
}

return $value;
Expand Down
2 changes: 1 addition & 1 deletion components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Use :method:`Symfony\\Component\\Process\\Process::disableOutput` and

.. caution::

You can not enable or disable the output while the process is running.
You cannot enable or disable the output while the process is running.

If you disable the output, you cannot access ``getOutput()``,
``getIncrementalOutput()``, ``getErrorOutput()`` or ``getIncrementalErrorOutput()``.
Expand Down
2 changes: 1 addition & 1 deletion components/var_dumper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ of your application may just break it by e.g. sending HTTP headers or
corrupting your view, the bundle configures the ``dump()`` function so that
variables are dumped in the web debug toolbar.

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

In a Twig template, two constructs are available for dumping a variable.
Expand Down
2 changes: 1 addition & 1 deletion controller/soap_web_service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ How to Create a SOAP Web Service in a Symfony Controller

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

.. note::
Expand Down
2 changes: 1 addition & 1 deletion doctrine/event_listeners_subscribers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ interface and have an event method for each event it subscribes to::

.. tip::

Doctrine event subscribers can not return a flexible array of methods to
Doctrine event subscribers cannot return a flexible array of methods to
call for the events like the :ref:`Symfony event subscriber <event_dispatcher-using-event-subscribers>`
can. Doctrine event subscribers must return a simple array of the event
names they subscribe to. Doctrine will then expect methods on the subscriber
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/button.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The following options are defined in the
:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BaseType` class.
The ``BaseType`` class is the parent class for both the ``button`` type
and the :doc:`form type </reference/forms/types/form>`, but it is not part
of the form type tree (i.e. it can not be used as a form type on its own).
of the form type tree (i.e. it cannot be used as a form type on its own).

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

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

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

Expand Down