$this->primaryKey('id')
in my Table class->find('all')->all()
on that Table inside ControllerA deprecation notice at the top of my screen since primaryKey()
is deprecated.
Everything worked with no errors shown
display_errors
is On
in phpinfo()
error_reporting
is 32767
a.k.a. E_ALL
in phpinfo()
$this->TESTprimaryKey('id')
raises BadMethodCallException
Unknown method "TESTprimaryKey", meaning it's the right TableError.errorLevel
set to E_ALL in my app.phpphp composer.phar upgrade
and php composer.phar update
just in caseVERSION.txt
shows 3.6.10. All of this is also true for 4.2.4.This looks all good, E_ALL
includes deprecations, and as long as debug
is enabled in your app configuration, deprecation warnings will be shown (irrespectively of PHPs display_errors
setting).
If you are using Debug Kit, deprecation warnings will be intercepted by it, and they can be found in the Deprecations panel.