Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 3497... Zeile 3497...
3497
    /**
3497
    /**
3498
     * Some platforms have boolean literals that needs to be correctly converted
3498
     * Some platforms have boolean literals that needs to be correctly converted
3499
     *
3499
     *
3500
     * The default conversion tries to convert value into bool "(bool)$item"
3500
     * The default conversion tries to convert value into bool "(bool)$item"
3501
     *
3501
     *
3502
     * @param mixed $item
3502
     * @param T $item
3503
     *
3503
     *
3504
     * @return bool|null
3504
     * @return (T is null ? null : bool)
-
 
3505
     *
-
 
3506
     * @template T
3505
     */
3507
     */
3506
    public function convertFromBoolean($item)
3508
    public function convertFromBoolean($item)
3507
    {
3509
    {
3508
        return $item === null ? null : (bool) $item;
3510
        return $item === null ? null : (bool) $item;
3509
    }
3511
    }