Skip to content
Snippets Groups Projects
  • wn_'s avatar
    9dac9c5a
    Address PHPStan warnings in 'classes/urlhelper.php'. · 9dac9c5a
    wn_ authored
    Intentionally skipping the line 66 one for now; adding an 'is_array' check clears the warning, but there's a larger topic of how to handle an invalid '' that doesn't result in an array.
    
    ------ ---------------------------------------------------------------------
    Line   classes/urlhelper.php
    ------ ---------------------------------------------------------------------
    66     Offset 'path' on array{scheme: string} in isset() does not exist.
    165    Parameter #2 $associative of function get_headers expects bool, int
            given.
    167    Parameter #2 $associative of function get_headers expects bool, int
            given.
    278    Negated boolean expression is always true.
    309    Negated boolean expression is always true.
    ------ ---------------------------------------------------------------------
    9dac9c5a
    History
    Address PHPStan warnings in 'classes/urlhelper.php'.
    wn_ authored
    Intentionally skipping the line 66 one for now; adding an 'is_array' check clears the warning, but there's a larger topic of how to handle an invalid '' that doesn't result in an array.
    
    ------ ---------------------------------------------------------------------
    Line   classes/urlhelper.php
    ------ ---------------------------------------------------------------------
    66     Offset 'path' on array{scheme: string} in isset() does not exist.
    165    Parameter #2 $associative of function get_headers expects bool, int
            given.
    167    Parameter #2 $associative of function get_headers expects bool, int
            given.
    278    Negated boolean expression is always true.
    309    Negated boolean expression is always true.
    ------ ---------------------------------------------------------------------