Commit 48e6beff authored by Niklas de Vries's avatar Niklas de Vries
Browse files

WIP Fixed ordering of PHP 7.1 fixers

parent c36fee81
......@@ -98,7 +98,8 @@ class NoSpaceAfterNullableFixer implements FixerInterface
*/
public function getPriority()
{
return 0;
// run after TernarySpacesFixer
return -10;
}
/**
......
......@@ -88,7 +88,8 @@ class SpaceBeforeReturnTypeFixer implements FixerInterface
*/
public function getPriority()
{
return 0;
// run after TernarySpacesFixer
return -10;
}
/**
......
......@@ -77,6 +77,23 @@ EOF
function f(?string $arg, ? Clazz $arg2)
{
}
EOF
],
[
<<<'EOF'
<?php
function f(?string $arg, ?Clazz $arg2)
{
}
EOF
,
<<<'EOF'
<?php
function f( ?string $arg, ?Clazz $arg2)
{
}
EOF
],
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment