Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead #1632

Open
BraisedFish opened this issue Dec 20, 2024 · 2 comments
Labels

Comments

@BraisedFish
Copy link

Versions:

  • ide-helper Version: 3.3.0
  • Laravel Version: 11.36.1
  • PHP Version: 8.4.1

Description:

Some warnings about deprecation still exist. Run ide-helper will report this to storage\logs\php-deprecation-warnings.log.

[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock::__construct(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock.php on line 72
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock::__construct(): Implicitly marking parameter $location as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock.php on line 72
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Description::__construct(): Implicitly marking parameter $docblock as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Description.php on line 41
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Description::setDocBlock(): Implicitly marking parameter $docblock as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Description.php on line 193
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Tag::createInstance(): Implicitly marking parameter $docblock as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Tag.php on line 114
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Tag::createInstance(): Implicitly marking parameter $location as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Tag.php on line 114
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Tag::__construct(): Implicitly marking parameter $docblock as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Tag.php on line 194
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Tag::__construct(): Implicitly marking parameter $location as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Tag.php on line 194
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Tag::setDocBlock(): Implicitly marking parameter $docblock as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Tag.php on line 326
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Tag::setLocation(): Implicitly marking parameter $location as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Tag.php on line 350
[2024-12-19 16:56:59] local.WARNING: Barryvdh\Reflection\DocBlock\Type\Collection::__construct(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in D:\var\gitlab\blocgo\backend-v2\vendor\barryvdh\reflection-docblock\src\Barryvdh\Reflection\DocBlock\Type\Collection.php on line 61

Steps To Reproduce:

@HarbourDesign
Copy link

HarbourDesign commented Dec 25, 2024

You'll see this with 8.4 but not <= 8.3.14 versions: php website. I'm seeing this 'notice' with pusher/pusher-php-server , yet the program works fine for me.

@BraisedFish
Copy link
Author

You'll see this with 8.4 but not <= 8.3.14 versions: php website. I'm seeing this 'notice' with pusher/pusher-php-server , yet the program works fine for me.

Yes, it's just a warning level. The code still could run. It's just because I see the same problem was fixed in 3.3.0 version. Mabey
the next version will do something for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants