/**
* Lock a single resource key
*
- * @param array $path
+ * @param string $path
* @param int $type
* @return Status
*/
if ( isset( $this->handles[$path] ) ) {
$handle = $this->handles[$path];
} else {
- wfSuppressWarnings();
+ MediaWiki\suppressWarnings();
$handle = fopen( $this->getLockPath( $path ), 'a+' );
- wfRestoreWarnings();
+ MediaWiki\restoreWarnings();
if ( !$handle ) { // lock dir missing?
wfMkdirParents( $this->lockDir );
$handle = fopen( $this->getLockPath( $path ), 'a+' ); // try again
/**
* Unlock a single resource key
*
- * @param array $path
+ * @param string $path
* @param int $type
* @return Status
*/