mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
N°5122 - Update libs to new PHP requirements
This commit is contained in:
@@ -615,7 +615,7 @@ class Filesystem
|
||||
*
|
||||
* @return string The new temporary filename (with path), or throw an exception on failure
|
||||
*/
|
||||
public function tempnam(string $dir, string $prefix/*, string $suffix = ''*/)
|
||||
public function tempnam(string $dir, string $prefix/* , string $suffix = '' */)
|
||||
{
|
||||
$suffix = \func_num_args() > 2 ? func_get_arg(2) : '';
|
||||
[$scheme, $hierarchy] = $this->getSchemeAndHierarchy($dir);
|
||||
@@ -700,7 +700,7 @@ class Filesystem
|
||||
*
|
||||
* @throws IOException If the file is not writable
|
||||
*/
|
||||
public function appendToFile(string $filename, $content/*, bool $lock = false*/)
|
||||
public function appendToFile(string $filename, $content/* , bool $lock = false */)
|
||||
{
|
||||
if (\is_array($content)) {
|
||||
throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be string or resource, array given.', __METHOD__));
|
||||
|
||||
Reference in New Issue
Block a user