Found by PHPStan.
Change-Id: I95813b0db9a3d6ca8c3894e5ccba00a9dc84b336
function defaultValue() {
if ( is_string( $this->info->dflt_value ) ) {
// Typically quoted
function defaultValue() {
if ( is_string( $this->info->dflt_value ) ) {
// Typically quoted
- if ( preg_match( '/^\'(.*)\'$', $this->info->dflt_value ) ) {
- return str_replace( "''", "'", $this->info->dflt_value );
+ if ( preg_match( '/^\'(.*)\'$/', $this->info->dflt_value, $matches ) ) {
+ return str_replace( "''", "'", $matches[1] );