54 return [
'filename',
'timestamp' ];
58 if ( is_null( $this->timestamp ) ) {
59 Wikimedia\suppressWarnings();
60 # Dependency on a non-existent file stores "false"
61 # This is a valid concept!
62 $this->timestamp = filemtime( $this->filename );
63 Wikimedia\restoreWarnings();
71 Wikimedia\suppressWarnings();
72 $lastmod = filemtime( $this->filename );
73 Wikimedia\restoreWarnings();
74 if ( $lastmod ===
false ) {
75 if ( $this->timestamp ===
false ) {
81 wfDebug(
"Dependency triggered: {$this->filename} deleted.\n" );
86 if ( $lastmod > $this->timestamp ) {
88 wfDebug(
"Dependency triggered: {$this->filename} changed.\n" );