Why is PHP's type hinting allowing NULL in place of object using Magento

0 votes
asked Mar 15, 2016 by vmaize (530 points)
Why is PHP's type hinting allowing object through when it is NULL.

3 Answers

+1 vote
answered Mar 16, 2016 by ireVery (380 points)

There are several functions that return either a string, FALSE, or NULL.
Adding the type of params and returns is the main subject of this issue. We're documenting data types, not data values.
commented Mar 17, 2016 by Gb_6812 (570 points)
Copied its Issue Summary here
commented Mar 17, 2016 by Nyy4980 (2,530 points)
See Grammatical tense
+1 vote
answered Apr 22, 2016 by nebof (240 points) 1 flag
Have you tried this PHP: Function arguments - Manual
It really helps me a lots
0 votes
answered Jun 1, 2016 by v9241 (140 points)
Is this a defect in Firefox/Linux or is it a defect in the page design

Related questions

0 votes
4 answers
0 votes
4 answers
asked Feb 24, 2016 by Flz2020 (2,670 points)
0 votes
5 answers

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!