Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #21010

Re: gestione degli array lacunosa

From alex <1j9448a02@lnx159sneakemail.com.invalid>
Newsgroups it.comp.www.php
Subject Re: gestione degli array lacunosa
Date 2016-07-04 17:26 +0200
Organization Aioe.org NNTP Server
Message-ID <nldv83$pmh$1@gioia.aioe.org> (permalink)
References (1 earlier) <dtuotnF19b2U1@mid.individual.net> <nldcvu$1mja$1@gioia.aioe.org> <d94f5522-c189-43c7-b32b-653e8738a0b4@googlegroups.com> <nldrm6$ibk$1@gioia.aioe.org> <525ccf96-beff-415a-90fe-88df9c937a4e@googlegroups.com>

Show all headers | View raw


Il 04/07/2016 16:50, fmassei@gmail.com ha scritto:
> On Monday, July 4, 2016 at 10:26:17 AM UTC-4, alex wrote:
>> L'obiettivo è sapere semplicemente qual'è l'elemento maligno dell'array
>> che ho passato alla funzione array_map (rileggere post iniziale).
>
> Ma "maligno" de che?? Ce l'hai messo te quel valore nell'array! Cosa pensi
> doveva succedere?
>

Potrebbe essere stato anche un mio collega, e per capire subito cosa c'è 
che non va, invece di

Fatal error:  Uncaught TypeError: Argument 1 passed to test() must be an 
instance of Abc, integer given

sarebbe meglio avere

Fatal error:  Uncaught TypeError: Argument 1 (with key: 'number') passed 
to test() must be an instance of Abc, integer given

Certo, quello che ho proposto è un esempio di poche righe di codice, 
quindi è facile trovare l'errore, ma se ad esempio l'array viene 
prelevato da un file yaml, un DB, o chissà dove...

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-04 10:18 +0200
  Re: gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-04 17:26 +0200
    Re: gestione degli array lacunosa fmassei@gmail.com - 2016-07-04 08:47 -0700
      Re: gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-04 18:56 +0200
        Re: gestione degli array lacunosa fmassei@gmail.com - 2016-07-04 10:52 -0700
          Re: gestione degli array lacunosa fmassei@gmail.com - 2016-07-04 20:08 -0700
            Re: gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-05 11:20 +0200
              Re: gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-05 11:57 +0200
          Re: gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-05 02:20 +0200
  Re: gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-04 12:15 +0200
    Re: gestione degli array lacunosa fmassei@gmail.com - 2016-07-04 05:22 -0700
      Re: gestione degli array lacunosa alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-04 16:26 +0200
        Re: gestione degli array lacunosa fmassei@gmail.com - 2016-07-04 07:50 -0700
  Re: gestione degli array lacunosa Alessandro Pellizzari <shuriken@amiran.it> - 2016-07-04 10:34 +0100

csiph-web