1 | <?php |
||
8 | class Quotes { |
||
9 | |||
10 | /** |
||
11 | * Quotes |
||
12 | * @var collection |
||
13 | */ |
||
14 | protected $quotes; |
||
15 | |||
16 | /** |
||
17 | * Get the Quotes from the respective files depending on the Category |
||
18 | * @param string $category |
||
19 | * @return array |
||
20 | */ |
||
21 | private function getQuotes($category = null) |
||
29 | |||
30 | /** |
||
31 | * Transform the programming quotes into a Collection |
||
32 | * @return Unicodeveloper\Quotes\Quotes |
||
33 | */ |
||
34 | public function programming() |
||
40 | |||
41 | /** |
||
42 | * Transform all the design quotes into a Collection |
||
43 | * @return Unicodeveloper\Quotes\Quotes |
||
44 | */ |
||
45 | public function design() |
||
51 | |||
52 | /** |
||
53 | * Get all Djkhaled Keys To Success #BlessUp #AnotherOne #TheyDontWantMeToWriteThisPackage |
||
54 | * @return Unicodeveloper\Quotes\Quotes |
||
55 | */ |
||
56 | public function djkhaled() |
||
62 | |||
63 | /** |
||
64 | * Get another quote. Another one, I say, Another One #BlessUp |
||
65 | * @return string |
||
66 | */ |
||
67 | public function anotherOne() |
||
71 | |||
72 | /** |
||
73 | * Get a random quote |
||
74 | * @return string |
||
75 | */ |
||
76 | public function random() |
||
80 | |||
81 | /** |
||
82 | * Get all the quotes |
||
83 | * @return Illuminate\Support\Collection |
||
84 | */ |
||
85 | public function all() |
||
89 | |||
90 | /** |
||
91 | * Get all the Keys to Success that are Blessed Up! |
||
92 | * @return array |
||
93 | */ |
||
94 | public function blessUp() |
||
106 | |||
107 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..