Astrotomic / Astrotomic/php-open-graph

PHP 8.4 deprecated warnings

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
63
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Using PHP 8.4 triggers lots of deprecated warnings like:

````
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::website(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 20
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::article(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 25
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::book(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 30
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::profile(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 35
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::movie(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 40
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::tvShow(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 45
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::episode(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 50
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::other(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 55
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::album(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 60
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::song(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 65
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::playlist(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 70
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\OpenGraph::radioStation(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/OpenGraph.php on line 75
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\Type::__construct(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/Type.php on line 14
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\Type::make(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/Type.php on line 20
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\TwitterType::__construct(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/TwitterType.php on line 9
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\TwitterType::make(): Implicitly marking parameter $title as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/TwitterType.php on line 15
[19-May-2025 07:13:41 America/Argentina/Buenos_Aires] PHP Deprecated: Astrotomic\OpenGraph\TwitterType::image(): Implicitly marking parameter $alt as nullable is deprecated, the explicit nullable type must be used instead in /home/franco/Trabajos/cevt-web/src/vendor/astrotomic/php-open-graph/src/TwitterType.php on line 41
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing OpenGraph.php, Type.php, and TwitterType.php at the locations shown in the PHP 8.4 warnings. Reproduce the warnings under PHP 8.4, update the affected nullable parameter declarations, and verify that these deprecation messages no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.