src/Fixer/AbstractSymplifyFixer.php
protected function getPriorityBefore(string $fixerClass): int
    {
        if (! is_a($fixerClass, FixerInterface::class, true)) {
            return 0;
        }

        /** @var FixerInterface $fixer */
        $fixer = (new ReflectionClass($fixerClass))->newInstanceWithoutConstructor();

        return $fixer->getPriority() + 5;
    }
protected function getPriorityBefore(string $fixerClass): int
    {
        if (! is_a($fixerClass, FixerInterface::class, true)) {
            return 0;
        }

        /** @var FixerInterface $fixer */
        $fixer = (new ReflectionClass($fixerClass))->newInstanceWithoutConstructor();

        return $fixer->getPriority() + 5;
    }
protected function getPriorityBefore ( string $ fixerClass ) : int { if ( ! is_a ( $ fixerClass , FixerInterface :: class , true ) ) { return 0 ; } /** @var FixerInterface $fixer */ $ fixer = ( new ReflectionClass ( $ fixerClass ) ) -> newInstanceWithoutConstructor ( ) ; return $ fixer -> getPriority ( ) + 5 ; }
Helper method to run this before specified fixer,
works even in case of change.
Helper method to run this before specified fixer works even in case of change .