Browse Source

Fix typo (#19168)

tags/2.0.45
charescape 3 years ago committed by GitHub
parent
commit
f555fce82b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/helpers/BaseFileHelper.php

2
framework/helpers/BaseFileHelper.php

@ -906,7 +906,7 @@ class BaseFileHelper
public static function changeOwnership($path, $ownership, $mode = null) public static function changeOwnership($path, $ownership, $mode = null)
{ {
if (!file_exists((string)$path)) { if (!file_exists((string)$path)) {
throw new InvalidArgumentException('Unable to change ownerhip, "' . $path . '" is not a file or directory.'); throw new InvalidArgumentException('Unable to change ownership, "' . $path . '" is not a file or directory.');
} }
if (empty($ownership) && $ownership !== 0 && $mode === null) { if (empty($ownership) && $ownership !== 0 && $mode === null) {

Loading…
Cancel
Save