php-activerecord
php-activerecord copied to clipboard
Declaration of ActiveRecord\DateTime::setTime($hour, $minute, $second = 0) should be compatible with DateTime::setTime
Warning: Declaration of ActiveRecord\DateTime::setTime($hour, $minute, $second = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) in F:\OpenServer\domains\localhost\ubrir\php\activerecord\lib\DateTime.php
php 7.1
This issue has been fixed at #562
Change function to
public function setTime($hour, $minute, $second = null, $microseconds = null) { $this->flag_dirty(); call_user_func_array(array($this,'parent::setTime'),func_get_args()); }
But this change needs to be merged to master I think, its not available in new install of the library, so I think it has to be changes manually for now