Skip to content

Commit

Permalink
[11.x] Set the value of $this in macro closures (#51401)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwelsh authored May 16, 2024
1 parent 5e1e328 commit 4ab7387
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Illuminate/Macroable/Traits/Macroable.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ trait Macroable
*
* @param string $name
* @param object|callable $macro
*
* @param-closure-this static $macro
*
* @return void
*/
public static function macro($name, $macro)
Expand Down

0 comments on commit 4ab7387

Please sign in to comment.