for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Properties package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Serafim\Properties\Reducers;
use Railt\Parser\Ast\RuleInterface;
* Class VariableReducer
class VariableReducer implements ReducerInterface
{
* @param RuleInterface $rule
* @return bool
public function match(RuleInterface $rule): bool
return $rule->getName() === 'DocBlockVariable';
}
* @return string
public function reduce(RuleInterface $rule): string
return $rule->getChild(0)->getValue(1);
getValue()
Railt\Parser\Ast\NodeInterface
getValues()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.