@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @param mixed $item |
61 | 61 | * the item to examine |
62 | - * @return array |
|
62 | + * @return string[] |
|
63 | 63 | * the list of type(s) that this item can be |
64 | 64 | */ |
65 | 65 | public function __invoke($item) |
@@ -52,7 +52,8 @@ discard block |
||
52 | 52 | * the unmodified $key if it is not a string |
53 | 53 | * the quoted $key if it is a string |
54 | 54 | */ |
55 | -function quote_index($key) { |
|
55 | +function quote_index($key) |
|
56 | +{ |
|
56 | 57 | if (!is_string($key)) { |
57 | 58 | return $key; |
58 | 59 | } |
@@ -68,7 +69,8 @@ discard block |
||
68 | 69 | * the property name to add braces to (if required) |
69 | 70 | * @return string |
70 | 71 | */ |
71 | -function quote_property($propertyName) { |
|
72 | +function quote_property($propertyName) |
|
73 | +{ |
|
72 | 74 | // robustness! |
73 | 75 | if (!is_stringy($propertyName)) { |
74 | 76 | throw new InvalidArgumentException('$propertyName is not a valid class or object property name'); |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | /** |
544 | 544 | * is $item something that PHP will accept as a string? |
545 | 545 | * |
546 | - * @param mixed $item |
|
546 | + * @param string $item |
|
547 | 547 | * the variable to examine |
548 | 548 | * @return bool |
549 | 549 | * TRUE if PHP will happily use $item as a string |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | /** |
653 | 653 | * what PHP type is $item? |
654 | 654 | * |
655 | - * @param mixed $item |
|
655 | + * @param string $item |
|
656 | 656 | * the data to examine |
657 | 657 | * @param int $flags |
658 | 658 | * options to change what we put in the return value |
@@ -669,7 +669,7 @@ discard block |
||
669 | 669 | * |
670 | 670 | * @param mixed $item |
671 | 671 | * the item to examine |
672 | - * @return array |
|
672 | + * @return string[] |
|
673 | 673 | * the list of type(s) that this item can be |
674 | 674 | */ |
675 | 675 | function get_strict_types($item) |