Skip to content

Commit

Permalink
minor #61 Update php-cs-fixer v2.12 & add @compiler_optimized native …
Browse files Browse the repository at this point in the history
…func rule (ogizanagi)

This PR was merged into the 1.x-dev branch.

Discussion
----------

Update php-cs-fixer v2.12 & add @compiler_optimized native func rule

Commits
-------

4340a51 Update php-cs-fixer v2.12 & add @compiler_optimized native func rule
  • Loading branch information
ogizanagi committed Jun 9, 2018
2 parents 6b8b6b2 + 4340a51 commit 49ecce2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ return PhpCsFixer\Config::create()
'header_comment' => ['header' => $header],
'yoda_style' => null,
'no_unneeded_final_method' => false, // final private __construct is a valid use-case
'native_function_invocation' => ['include' => ['@compiler_optimized']],
])
;
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"doctrine/dbal": "^2.4",
"doctrine/doctrine-bundle": "^1.4",
"doctrine/orm": "^2.4",
"friendsofphp/php-cs-fixer": "^2.8",
"friendsofphp/php-cs-fixer": "^2.12.0",
"nelmio/alice": "^3.0",
"phpspec/prophecy": "~1.0",
"symfony/phpunit-bridge": "^3.3|^4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function resolve(Request $request, ArgumentMetadata $argument)
$enumClass = $argument->getType();
$requestValue = $request->get($argument->getName());

if (!is_array($requestValue) || !$argument->isVariadic()) {
if (!\is_array($requestValue) || !$argument->isVariadic()) {
$requestValue = [$requestValue];
}

Expand Down

0 comments on commit 49ecce2

Please sign in to comment.