Skip to content

Commit

Permalink
Merge pull request #16 from Majkl578/cs-5.0
Browse files Browse the repository at this point in the history
Apply Doctrine CS 5.0
  • Loading branch information
jwage committed Sep 25, 2018
2 parents 6e98ca6 + 52182cf commit ba598f7
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"php": "^7.1"
},
"require-dev": {
"doctrine/coding-standard": "^4.0",
"doctrine/coding-standard": "^5.0",
"phpunit/phpunit": "^7.0"
},
"conflict": {
Expand Down
51 changes: 27 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions lib/Doctrine/Common/EventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ class EventArgs
* The benefit from this is that only one empty instance is instantiated and shared
* (otherwise there would be instances for every dispatched in the abovementioned form).
*
* @see EventManager::dispatchEvent
*
* @link https://msdn.microsoft.com/en-us/library/system.eventargs.aspx
* @see EventManager::dispatchEvent
*
* @return EventArgs
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Doctrine/Common/EventManager.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Doctrine\Common;

use function spl_object_hash;
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/TestInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
error_reporting(E_ALL | E_STRICT);

// register silently failing autoloader
spl_autoload_register(function ($class) {
spl_autoload_register(static function ($class) {
if (strpos($class, 'Doctrine\Tests\\') !== 0) {
return;
}
Expand Down

0 comments on commit ba598f7

Please sign in to comment.