Skip to content

Commit f6ed663

Browse files
committed
fix: fix "Creation of dynamic property Field::$title is deprecated"
1 parent 84b6c2d commit f6ed663

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

upload-field-to-youtube-for-acf/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"wpackagist-plugin/wp-cfm": "^1.7",
3838
"wpackagist-plugin/wp-debugging": "^2.11"
3939
},
40+
"suggest": {
41+
"inpsyde/wonolog": "For enhanced logging capabilities and better debugging experience"
42+
},
4043
"repositories": [
4144
{
4245
"type": "composer",

upload-field-to-youtube-for-acf/src/Field.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@
2424

2525
/**
2626
* Class Field.
27-
*
28-
* @property string $title
2927
*/
3028
class Field extends \acf_field
3129
{
30+
/**
31+
* Field type title.
32+
*/
33+
public string $title;
34+
3235
/**
3336
* Controls field type visibilty in REST requests.
3437
*

0 commit comments

Comments
 (0)