Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 247ab4f

Browse files
authored
Avoid "Deprecate dynamic properties" warning in PHP 8.2 (#159)
1 parent 7a832fd commit 247ab4f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎examples/generate_phpdoc.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ def add_nickname(gtype, a, b):
265265
f.write(' */\n')
266266
f.write('abstract class ImageAutodoc extends VipsObject\n')
267267
f.write('{\n')
268+
f.write(' abstract public function __set(string $name, $value);\n')
269+
f.write(' abstract public function __get(string $name);\n')
268270
f.write('}\n')
269271

270272

‎src/ImageAutodoc.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,4 +703,6 @@
703703
*/
704704
abstract class ImageAutodoc extends VipsObject
705705
{
706+
abstract public function __set(string $name, $value);
707+
abstract public function __get(string $name);
706708
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /