Test: /ext/standard/tests/array/array_map_object1.phpt - Version 7.0.16-dev    

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
005+ Deprecated: Non-static method SimpleClass::square() should not be called statically in %s/array_map_object1.php on line 28
006+
016- Warning: array_map() expects parameter 1 to be a valid callback, cannot access private method SimpleClassPri::add() in %sarray_map_object1.php on line %d
017- NULL
018+ Deprecated: Non-static method SimpleClassPri::add() should not be called statically in %s/array_map_object1.php on line 28
019- -- simple class with protected variable and method --
020- SimpleClassPro::mul
021-
022- Warning: array_map() expects parameter 1 to be a valid callback, cannot access protected method SimpleClassPro::mul() in %sarray_map_object1.php on line %d
023- NULL
024-
020+ Fatal error: Uncaught TypeError: Argument 1 passed to array_map() must be callable, array given in %s/array_map_object1.php:28
021+ Stack trace:
022+ #0 %s/array_map_object1.php(28): array_map(Array, Array)
023+ #1 %s/array_map_object1.php(40): test(Array, Array)
024+ #2 {main}
025+ thrown in %s/array_map_object1.php on line 28
025- -- class without members --
026- EmptyClass
027-
028- Warning: array_map() expects parameter 1 to be a valid callback, array must have exactly two members in %sarray_map_object1.php on line %d
029- NULL
030-
031- -- abstract class --
032- ChildClass::emptyFunction
033-
034- Deprecated: array_map() expects parameter 1 to be a valid callback, non-static method ChildClass::emptyFunction() should not be called statically in %sarray_map_object1.php on line %d
035- defined in child
036- defined in child
037- array(2) {
038- [0]=>
039- NULL
040- [1]=>
041- NULL
042- }
043-
044- -- class with final method --
045- FinalClass::finalMethod
046-
047- Deprecated: array_map() expects parameter 1 to be a valid callback, non-static method FinalClass::finalMethod() should not be called statically in %sarray_map_object1.php on line %d
048- This function can't be overloaded
049- This function can't be overloaded
050- array(2) {
051- [0]=>
052- NULL
053- [1]=>
054- NULL
055- }
056-
057- -- class with static members --
058- StaticClass::square
059- array(2) {
060- [0]=>
061- int(1)
062- [1]=>
063- int(4)
064- }
065- StaticClass::cube
066-
067- Warning: array_map() expects parameter 1 to be a valid callback, cannot access private method StaticClass::cube() in %sarray_map_object1.php on line %d
068- NULL
069- StaticClass::retVal
070-
071- Warning: array_map() expects parameter 1 to be a valid callback, cannot access protected method StaticClass::retVal() in %sarray_map_object1.php on line %d
072- NULL
073- -- class implementing an interface --
074- InterClass::square
075- array(2) {
076- [0]=>
077- int(1)
078- [1]=>
079- int(4)
080- }
081- ===DONE===