Skip to content

Commit

Permalink
Deprecate direct usage of $bindings property
Browse files Browse the repository at this point in the history
Marked the `$bindings` property as deprecated with a note to use the `_initState` setter method instead for initialization. This ensures better encapsulation and guides developers toward proper usage.
  • Loading branch information
koriym committed Feb 14, 2025
1 parent 72654a6 commit 8861b0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/InterceptTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ trait InterceptTrait
/**
* @var MethodBindings

Check failure on line 15 in src/InterceptTrait.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Incorrect annotations group.

Check failure on line 15 in src/InterceptTrait.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Incorrect annotations group.
* @readonly
*
* @deprecated Do not use this property directly. Use the `_initState` setter method instead for initialization.
*/
public $bindings = [];

Expand Down

0 comments on commit 8861b0c

Please sign in to comment.