Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [SF][SF2][Symfony2] Interface 'Throwable' not found
Randallmaster
post 20.09.2017, 08:22:05
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 20.09.2017, 08:37:23
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 20.09.2017, 08:38:16
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 sad.gif

Ten post edytował Randallmaster 20.09.2017, 08:38:53
Go to the top of the page
+Quote Post
viking
post 20.09.2017, 08:41:16
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 20.09.2017, 08:43:06
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 20.09.2017, 08:52:25
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 20.09.2017, 09:01:22
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 smile.gif
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 13.08.2025 - 22:34