-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1471 from kukulich/hooks
Support of `__PROPERTY__`
- Loading branch information
Showing
7 changed files
with
106 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Roave\BetterReflectionTest\Fixture; | ||
|
||
class MagicConstantsInPropertyHooks | ||
{ | ||
public string $propertyMagicConstantMethod { | ||
set ( | ||
#[SomeAttribute(__METHOD__)] | ||
string $value | ||
) { | ||
$this->propertyMagicConstantMethod = $value; | ||
} | ||
} | ||
|
||
public string $propertyMagicConstantFunction { | ||
set ( | ||
#[SomeAttribute(__FUNCTION__)] | ||
string $value | ||
) { | ||
$this->propertyMagicConstantFunction = $value; | ||
} | ||
} | ||
|
||
public string $propertyMagicConstantProperty { | ||
set ( | ||
#[SomeAttribute(__PROPERTY__)] | ||
string $value | ||
) { | ||
$this->propertyMagicConstantProperty = $value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters