Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [SF][SF2][Symfony2] Interface 'Throwable' not found
Randallmaster
post
Post #1





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


Witam stworzyłem za pomocą komendy php artisan make:command jakasKlasa

W handle używam takiej funkcji co może powodować zaistniały błąd?
  1. /**
  2.   * Execute the console command.
  3.   *
  4.   * @return mixed
  5.   */
  6. public function handle()
  7. {
  8. $warehouse = WarehouseDocument::all()->toArray();
  9. $this->table($warehouse);
  10. }


[Symfony\Component\Debug\Exception\FatalErrorException]
Interface 'Throwable' not found
Go to the top of the page
+Quote Post
viking
post
Post #2





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


PHP5 zamiast 7.
Go to the top of the page
+Quote Post
Randallmaster
post
Post #3





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


Aplikacja musi być na php 7 nie da się w jakiś inny sposób tego rozwiązać? Dlaczego jest to problem z wersją php?
Zmieniłem na php 56 i ciągle to samo (IMG:style_emoticons/default/sad.gif)

Ten post edytował Randallmaster 20.09.2017, 08:38:53
Go to the top of the page
+Quote Post
viking
post
Post #4





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


http://php.net/manual/en/class.throwable.php (PHP 7). Skoro masz 5.6 to nie ma interface Throwable.
Go to the top of the page
+Quote Post
Randallmaster
post
Post #5





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


Cytat(viking @ 20.09.2017, 09:37:23 ) *
PHP5 zamiast 7.

Napisałeś że mam uruchomić php 5 to tak zrobiłem. Ogólnie używam php 7.2
Go to the top of the page
+Quote Post
viking
post
Post #6





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

Ostrzeżenie: (0%)
-----


Nie, napisałem że jest PHP5 zamiast 7.
Go to the top of the page
+Quote Post
Randallmaster
post
Post #7





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


już działa... nie zauważyłem że nie zmienia mi się wersja php. cały czas pracowałem na 56. Po zmianie na 72 problemu już nie ma (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 10:48