Skip to content

Commit 94ca114

Browse files
committed
Suppress warnings for non-standard method naming
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.
1 parent 05f38b1 commit 94ca114

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/InterceptTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ trait InterceptTrait
2525
* @param MethodBindings $bindings
2626
*
2727
* @see WeavedInterface::_initState()
28+
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
2829
*/
29-
public function _initState(array $bindings): void
30+
public function _initState(array $bindings): void // @phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
3031
{
3132
$this->bindings = $bindings;
3233
}

0 commit comments

Comments
 (0)