Commit b1eea081 authored by webchick's avatar webchick

Issue #1983136 by fubhy: Use 'instanceof' instead of class_implements() in...

Issue #1983136 by fubhy: Use 'instanceof' instead of class_implements() in \Drupal\Core\FileTransfe\FileTransfer.
parent b8302af2
......@@ -142,7 +142,7 @@ function __get($name) {
* @see http://php.net/chmod
*/
public final function chmod($path, $mode, $recursive = FALSE) {
if (!in_array('Drupal\Core\FileTransfer\ChmodInterface', class_implements(get_class($this)))) {
if (!($this instanceof ChmodInterface)) {
throw new FileTransferException('Unable to change file permissions');
}
$path = $this->sanitizePath($path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment