Quantcast
Channel: Web Development Tips » CakePHP
Viewing all articles
Browse latest Browse all 6

[RFC] PHP 5.4 Strict Error Reporting

$
0
0
Testing with PHP 5.4 at E_ALL produces strict warning messages such as: Strict (2048): Declaration of Product::beforeSave() should be compatible with Model::beforeSave($options = Array) [APP/Model/Product.php, line 4] It’s an easy fix, for example in APP/Model/Product.php change: public function beforeSave() { to: public function beforeSave($options = array()) { Filed under: CakePHP Tagged: Array, cakephp, compatible, compatible […]

Viewing all articles
Browse latest Browse all 6

Trending Articles