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

Legacy nullable type detected, please update your code as you are using nullable types in a docblock #178

Closed
williamdes opened this issue Nov 25, 2022 · 1 comment · Fixed by #185

Comments

@williamdes
Copy link
Contributor

------ ----------------------------------------------------------------------- 
  Line   src/Search.php                                                         
 ------ ----------------------------------------------------------------------- 
  43     16384: Legacy nullable type detected, please update your code as       
                  you are using nullable types in a docblock. support will be   
         removed in v2.0.0 in                                                   
         phar:///bin/doctum/vendor/phpdocumentor/type-resolver/src/TypeResolve  
         r.php line 578 on "Williamdes\MariaDBMySQLKBS\Search::loadData"        
  87     163[84](https://github.com/williamdes/mariadb-mysql-kbs/actions/runs/3547671604/jobs/5959164758#step:4:89): Legacy nullable type detected, please update your code as       
                  you are using nullable types in a docblock. support will be   
         removed in v2.0.0 in                                                   
         phar:///bin/doctum/vendor/phpdocumentor/type-resolver/src/TypeResolve  
         r.php line 578 on "Williamdes\MariaDBMySQLKBS\Search::getByName"       
  117    16384: Legacy nullable type detected, please update your code as       
                  you are using nullable types in a docblock. support will be   
         removed in v2.0.0 in                                                   
         phar:///bin/doctum/vendor/phpdocumentor/type-resolver/src/TypeResolve  
         r.php line 578 on "Williamdes\MariaDBMySQLKBS\Search::getVariable"     
  134    16384: Legacy nullable type detected, please update your code as       
                  you are using nullable types in a docblock. support will be   
         removed in v2.0.0 in                                                   
         phar:///bin/doctum/vendor/phpdocumentor/type-resolver/src/TypeResolve  
         r.php line 578 on                                                      
         "Williamdes\MariaDBMySQLKBS\Search::getVariableType"                   
 ------ -----------------------------------------------------------------------

https://github.com/phpDocumentor/TypeResolver/blob/1.x/src/TypeResolver.php#L575-L579

https://github.com/williamdes/mariadb-mysql-kbs/actions/runs/3547671604/jobs/5959164758

There is no nullable types in the code 🤔
Source: https://github.com/williamdes/mariadb-mysql-kbs/blob/main/src/Search.php

@pyncerrc
Copy link

I am getting the same issue, it seems to have to do with my @throws statements as removing them makes the error go away.

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 a pull request may close this issue.

2 participants