PHP_CodeSniffer icon indicating copy to clipboard operation
PHP_CodeSniffer copied to clipboard

This package contains a default rule set and custom rules which are used in all best it projects.

Results 7 PHP_CodeSniffer issues
Sort by recently updated
recently updated
newest added

Fixes errors occuring due to changed interfaces in recent slevomat/coding-standard ^8.0 releases.

Maybe its a good idea to just warn against named argument, than throwing an hard error? It still kinda makes sense on large parameter lists and you don't want to...

* @param SearchRequest $request * * @return Collection */ #Annotation('foo', ['far'])] public function index(SearchRequest $request): Collection Should not trigger an error or warning, but it does.

For example BestIt.Formatting.AlphabeticClassContent.SortAlphabetically does not understand to differentiate between "child" methods and methods of a class!

The type hint : void ist not possible in PHP 7.0 but the php code sniffer requires a return type even for methods with the @return void tag.

Code: ``` /** * Sets the default shipping address. * * @param Address $defaultShippingAddress * * * * @return User */ public function setDefaultShippingAddress($defaultShippingAddress): User { $this->defaultShippingAddress = $defaultShippingAddress; return...

If there is a line after the "@package"-tag in the class' annotations, for example a class description, the Package Tag Sniff interprets it as if the class description was part...