battis / restful-api

https://battis.github.io/restful-api/
0 stars 0 forks source link

better solution to PHP 8.2 deprecation of dynamic property declaration #29

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/battis/crud/blob/4fc9232782289ac8310a65e4068655194ffa792b/src/Record.php#L194


                    Types::toExpectedArgumentType($this, $setter, $value)
                );
            } else {
                // TODO better solution to PHP 8.2 deprecation of dynamic property declaration
                @($this->$property = $value);
            }
        }
    }