YAML files should not contain syntax error
More information: https://insight.sensiolabs.com/what-we-analyse/symfony.configuration.yaml_syntax_error
- - php: 5.6
- - php: 7.0
- DEPENDENCIES="doctrine/annotations"
- - php: 7.1
- - php: 7.2
- env: COVERAGE=true TEST_COMMAND="composer test-ci"
- # Test LTS versions
- - php: 7.2
- env: DEPENDENCIES="dunglas/symfony-lock:^2 doctrine/annotations "
- - php: 7.2
Absolute path constants __DIR__ and __FILE__ should not be used
More information: https://insight.sensiolabs.com/what-we-analyse/symfony.dependency_injection.use_dir_file_constant
- require $proxyFile;
- return $proxyClass;
- }
- $content = file_get_contents(dirname(__DIR__).'/Resources/proxy/template.php');
- $content = str_replace('__TPL_CLASS__', $proxyClass, $content);
- $content = str_replace('__TPL_EXTENDS__', $class, $content);
- $this->checkProxyDirectory();
- file_put_contents($proxyFile, $content);
Unused method, property, variable or parameter
More information: https://insight.sensiolabs.com/what-we-analyse/php.unused_local_variable_or_private_member
- use Cache\CacheBundle\DataCollector\TraceableAdapterEvent;
- use Psr\Cache\CacheItemInterface;
- class __TPL_CLASS__ extends __TPL_EXTENDS__ implements CacheProxyInterface
- {
- private $__name;
- private $__calls = [];
- public function getItem($key)
- {
- $event = $this->start(__FUNCTION__, $key);