![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 189 Pomógł: 13 Dołączył: 20.09.2008 Skąd: Lublin Ostrzeżenie: (0%) ![]() ![]() |
Cytat G:\htdocs\project>.\vendor\bin\phpunit PHP Fatal error: Cannot use 'null' as class name as it is reserved in G:\htdocs \project\src\Named\NamedTrait.php on line 32 Na taki błąd natknąłem się dzisiaj, gdy chciałem napisać testy jednostkowe dla mojej aplikcaji. Podobnymi błędami rzuca w przypadku typu void. Czy to standardowy błąd PHPUnit, czy może trzeba po prostu coś inaczej zrobić? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 240 Pomógł: 278 Dołączył: 11.03.2008 Ostrzeżenie: (0%) ![]() ![]() |
@Python czytałem to zanim napisałem post, może mój angielski po prostu szwankuje ale:
Cytat Functions declared with void as their return type must either omit their return statement altogether, or use an empty return statement. Czy to nie oznacza, że funkcje zdeklarowane z void jako return type muszą albo pomijać return całkowicie albo używać pustego return;? Ten post edytował markuz 25.05.2017, 21:43:19 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 11.10.2025 - 02:58 |