Skip to content

Commit 9d24dd5

Browse files
committed
Add note about not marking functions which takes callables as Pure
1 parent fce8dc2 commit 9d24dd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meta/attributes/Pure.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/**
88
* The attribute marks the function that has no impact on the program state or passed parameters used after the function execution.
99
* This means that a function call that resolves to such a function can be safely removed if the execution result is not used in code afterwards.
10+
* Functions that take a callable which is called should not have this attribute applied.
1011
*
1112
* @since 8.0
1213
*/

0 commit comments

Comments
 (0)