mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 04:22:40 +00:00
CakeEmail::emailRegex() change to null default value
This commit is contained in:
parent
175280ad79
commit
eabea1163f
1 changed files with 2 additions and 2 deletions
|
@ -535,8 +535,8 @@ class CakeEmail {
|
|||
* @param string $regexp
|
||||
* @return string|CakeEmail
|
||||
*/
|
||||
public function emailRegex($regex = false) {
|
||||
if ($regex === false) {
|
||||
public function emailRegex($regex = null) {
|
||||
if ($regex === null) {
|
||||
return $this->_emailRegex;
|
||||
}
|
||||
$this->_emailRegex = $regex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue