Skip to content

49 - add explicit nullable declarations#50

Open
mattgorle wants to merge 2 commits intovanilla:masterfrom
mattgorle:49-declare-explicit-nullable
Open

49 - add explicit nullable declarations#50
mattgorle wants to merge 2 commits intovanilla:masterfrom
mattgorle:49-declare-explicit-nullable

Conversation

@mattgorle
Copy link
Copy Markdown

This should address #49 by adding the following explicit nullable declarations:

  1. Cli::parse: $argv
  2. Cli::validateType $def

The underlying issue is not visible when testing with PHP 8.4 and PHPUnit 8, so there is no clear difference when running the test suite.

However, when testing from an external project with PHP 8.4 and PHPUnit 12, two deprecation notices appear before the change and disappear after the change.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 15, 2025

CLA assistant check
All committers have signed the CLA.

@DanielEScherzer
Copy link
Copy Markdown

Just ran into this issue and was about to report it, thanks for sending a patch

@elcreator
Copy link
Copy Markdown

Looks like main Vanilla project is abandoned from 2021 https://open.vanillaforums.com/discussion/39558/official-releases-have-ended and things are not getting merged.

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.

4 participants