Skip to content

Commit

Permalink
Merge pull request #620 from malarzm/fix-doctor-rst
Browse files Browse the repository at this point in the history
Fix failures found by DOCtor-RST
  • Loading branch information
malarzm authored Feb 27, 2020
2 parents 5dd3f0d + d36d337 commit f095f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Resources/doc/.doctor-rst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ rules:
lowercase_as_in_use_statements: ~
ordered_use_statements: ~
no_namespace_after_use_statements: ~
replace_code_block_types: ~
use_https_xsd_urls: ~
blank_line_before_directive: ~
extension_xlf_instead_of_xliff: ~
Expand Down
7 changes: 3 additions & 4 deletions Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,12 @@ to easily fetch objects based on multiple conditions:
.. code-block:: php
// query for one product matching be name and price
$product = $repository->findOneBy(array('name' => 'foo', 'price' => 19.99));
$product = $repository->findOneBy(['name' => 'foo', 'price' => 19.99]);
// query for all products matching the name, ordered by price
$product = $repository->findBy(
array('name' => 'foo'),
array('price' => 'ASC'),
['name' => 'foo'],
['price' => 'ASC'],
);
Updating an Object
Expand Down Expand Up @@ -892,5 +892,4 @@ Learn more from the Cookbook
.. _`UniqueEntity`: http://symfony.com/doc/current/reference/constraints/UniqueEntity.html
.. _`store sessions`: http://symfony.com/doc/current/cookbook/doctrine/mongodb_session_storage.html
.. _`"Using PHP 7" section`: https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/1.2/reference/introduction.html#using-php-7
.. _`autowiring`: https://symfony.com/doc/current/service_container/autowiring.html
.. _`recipes`: http://fabien.potencier.org/symfony4-contributing-recipes.html

0 comments on commit f095f57

Please sign in to comment.