You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function nameFunction(?string $value = null) {
or public function nameFunction(string|null $value = null) {
Pint 1.10.5 remove null and become public function nameFunction(string $value = null) { <-- wrong
I tried with Pint 1.10.3 and the type aren't touched public function nameFunction(?string $value = null) { <-- correct public function nameFunction(string|null $value = null) { <-- correct
Pint Version
1.10.5
PHP Version
8.1.10
Description
Type null remove into declaration function
Steps To Reproduce
Scenario
OS: Windows
PHP: 8.1.10
public function nameFunction(?string $value = null) {
or
public function nameFunction(string|null $value = null) {
Pint 1.10.5 remove null and become
public function nameFunction(string $value = null) {
<-- wrongI tried with Pint 1.10.3 and the type aren't touched
public function nameFunction(?string $value = null) {
<-- correctpublic function nameFunction(string|null $value = null) {
<-- correctpint.json
The text was updated successfully, but these errors were encountered: