Skip to content

Adding null typing to solve (latest) php 8.4 deprecation#309

Merged
freekmurze merged 1 commit intospatie:mainfrom
kevinoo:main
Oct 28, 2025
Merged

Adding null typing to solve (latest) php 8.4 deprecation#309
freekmurze merged 1 commit intospatie:mainfrom
kevinoo:main

Conversation

@kevinoo
Copy link
Contributor

@kevinoo kevinoo commented Oct 24, 2025

Following PR #303

In the last PHP update to version 8.4, the declaration of variables initialized as null without proper typing was deprecated.

https://www.php.net/manual/en/migration84.deprecated.php

This PR intends to resolve the latest warning alert presented for the package within applications that use it.

Deprecated: Spatie\GoogleCalendar\Event::get(): Implicitly marking parameter $calendarId as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-google-calendar/src/Event.php on line 83

@freekmurze freekmurze merged commit 94fd406 into spatie:main Oct 28, 2025
20 checks passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants