![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 495 Pomógł: 245 Dołączył: 1.07.2009 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Wrzucam tablice $_POST['product_check'] do mojej metody przyjmującej tablice:
No to skoro tablica oczekuje tablicy, a ja mu wrzucam tablicę $_POST['product_check'] to czego mi wali poniższym błędem? Kod Fatal error: Uncaught TypeError: nameOne\Request::sanitizePostArray(): Argument #1 ($request) must be of type array, string given, called in /home/xxx/public_html/index.php on line 20 and defined in /home/xxx/public_html/pagefiles/Request.php:24 Stack trace: #0 /home/xxx/public_html/index.php(20): nameOne\Request->sanitizePostArray('product_check') #1 {main} thrown in /home/xxx/public_html/pagefiles/Request.php on line 24 PS. public function sanitizePostArray(array $request): array <---- Tutaj pierwsze array znaczy że wrzucamy tablicę do metody, a drugi array że metoda zwraca tablicę. Tak? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 26.09.2025 - 04:41 |