zend-coding-standard icon indicating copy to clipboard operation
zend-coding-standard copied to clipboard

Zend Framework Coding Standard

Results 10 zend-coding-standard issues
Sort by recently updated
recently updated
newest added

Adds license header sniff and MD files sniff - check all files for license header - check contents of MD files if match with templates from maintainers repository - sniff...

enhancement

Needs https://github.com/webimpress/coding-standard/issues/29

`zend-coding-standard` current version require `squizlabs/php_codesniffer ^2.7` but now `php_codesniffer` stable version is `3.1.1`, please update your lib dependencies

This file causes maximum number of loops reached error with 2.0.0-alpha.3: https://github.com/zendframework/zend-mvc/blob/d83d57e2e64e240e94efcc43d5b1483919cb65a0/src/View/Http/InjectTemplateListener.php Related dependencies: ``` dealerdirect/phpcodesniffer-composer-installer v0.5.0 slevomat/coding-standard 4.8.7 squizlabs/php_codesniffer 3.4.0 webimpress/coding-standard dev-master dffb652 zendframework/zend-coding-standard 2.0.0-alpha.3 ``` Offending part by...

With copyright docblock using older `@link` tag format, strict types declaration is placed before it. ```diff

2.0.0-alpha.3 standard does not recognize and improperly reformats intersect types(&) in phpdoc: ```diff /** * Inject a service into the container mock. * * Adjust `has('service')` and `get('service')` returns. *...

`\Exception` and `\Throwable` are not equal and must not be swapped. `\Throwable` includes php errors, some of which are not really recoverable. On top of that it actually breaks code...

bug

- [x] I was not able to find an [open](https://github.com/zendframework/zend-coding-standard/issues?q=is%3Aopen) or [closed](https://github.com/zendframework/zend-coding-standard/issues?q=is%3Aclosed) issue matching what I'm seeing. - [x] This is not a question. (Questions should be asked on [chat](https://zendframework.slack.com/)...

Previously I let phpcb insert the declare statement instead of writing it myself. But since the latest update (2.0.0.alpha4), phpcb does not insert the declare statement anymore. phpcs still reports...