Skip to content

Commit

Permalink
Suppress warnings for non-standard method naming
Browse files Browse the repository at this point in the history
Added PHPMD and PHPCS suppressions to allow the use of non-PSR2 compliant method naming in `_initState`. This ensures compatibility while avoiding unnecessary linting issues.
  • Loading branch information
koriym committed Feb 14, 2025
1 parent 28aef2c commit d087ba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/InterceptTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ trait InterceptTrait
* @param MethodBindings $bindings
*
* @see WeavedInterface::_initState()
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
*/
public function _initState(array $bindings): void
public function _initState(array $bindings): void // @phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
{
$this->bindings = $bindings;
}
Expand Down

0 comments on commit d087ba1

Please sign in to comment.