-
Notifications
You must be signed in to change notification settings - Fork 935
[PHP] Return type changed in PHP >= 8-0. Fluent setters now return static.
#9431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
matthiasblaesing
merged 1 commit into
apache:master
from
DamImpr:fluent_setter_static_from_php_80
Jun 21, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
36 changes: 18 additions & 18 deletions
36
...pertiesSetter/testTypedPropertiesSetter.php.testTypedPropertiesSetter_PHP70Fluent.codegen
This file contains hidden or 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
36 changes: 18 additions & 18 deletions
36
...pertiesSetter/testTypedPropertiesSetter.php.testTypedPropertiesSetter_PHP71Fluent.codegen
This file contains hidden or 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
90 changes: 90 additions & 0 deletions
90
...pertiesSetter/testTypedPropertiesSetter.php.testTypedPropertiesSetter_PHP74Fluent.codegen
This file contains hidden or 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,90 @@ | ||
| public function setInstanceArray(array $$instanceArray): self { | ||
| $$this->instanceArray = $instanceArray; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceInt(int $$instanceInt): self { | ||
| $$this->instanceInt = $instanceInt; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceString(string $$instanceString): self { | ||
| $$this->instanceString = $instanceString; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceBool(bool $$instanceBool): self { | ||
| $$this->instanceBool = $instanceBool; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceNull($$instanceNull): self { | ||
| $$this->instanceNull = $instanceNull; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceNullable(?string $$instanceNullable): self { | ||
| $$this->instanceNullable = $instanceNullable; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceArrayNullable(?array $$instanceArrayNullable): self { | ||
| $$this->instanceArrayNullable = $instanceArrayNullable; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceClass(Test53 $$instanceClass): self { | ||
| $$this->instanceClass = $instanceClass; | ||
| return $$this; | ||
| } | ||
|
|
||
| public static function setStaticInt(int $$staticInt): self { | ||
| self::$$staticInt = $staticInt; | ||
| return self; | ||
| } | ||
|
|
||
| public static function setStaticNullable(?int $$staticNullable): self { | ||
| self::$$staticNullable = $staticNullable; | ||
| return self; | ||
| } | ||
|
|
||
| public function setInstanceInt74(int $$instanceInt74): self { | ||
| $$this->instanceInt74 = $instanceInt74; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceString74(string $$instanceString74): self { | ||
| $$this->instanceString74 = $instanceString74; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceBool74(bool $$instanceBool74): self { | ||
| $$this->instanceBool74 = $instanceBool74; | ||
| return $$this; | ||
| } | ||
|
|
||
| public function setInstanceNullable74(?string $$instanceNullable74): self { | ||
| $$this->instanceNullable74 = $instanceNullable74; | ||
| return $$this; | ||
| } | ||
|
|
||
| public static function setStaticInt74(int $$staticInt74): self { | ||
| self::$$staticInt74 = $staticInt74; | ||
| return self; | ||
| } | ||
|
|
||
| public static function setStaticString74(string $$staticString74): self { | ||
| self::$$staticString74 = $staticString74; | ||
| return self; | ||
| } | ||
|
|
||
| public static function setStaticBool74(bool $$staticBool74): self { | ||
| self::$$staticBool74 = $staticBool74; | ||
| return self; | ||
| } | ||
|
|
||
| public static function setStaticNullable74(?string $$staticNullable74): self { | ||
| self::$$staticNullable74 = $staticNullable74; | ||
| return self; | ||
| } | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.