Skip to content

Commit a027cc2

Browse files
committed
Phpstan: fixes
1 parent c17cbff commit a027cc2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

phpstan.neon

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ includes:
55
- vendor/phpstan/phpstan-strict-rules/rules.neon
66

77
parameters:
8-
ignoreErrors:
9-
- '#^Contributte\\Deployer\\Logging\\StdOutLogger::__construct\(\) does not call parent constructor from Deployment\\Logger#'
8+
ignoreErrors:
9+
- '#^Contributte\\Deployer\\Logging\\StdOutLogger::__construct\(\) does not call parent constructor from Deployment\\Logger#'
10+
phpVersion: 80000

src/Config/Section.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function setTestMode(bool $testMode): void
249249

250250
public function getFilePermissions(): ?int
251251
{
252-
return $this->filePermissions === '' ? null : octdec($this->filePermissions);
252+
return $this->filePermissions === '' ? null : (int) octdec($this->filePermissions);
253253
}
254254

255255
public function setFilePermissions(string $mask): void
@@ -259,7 +259,7 @@ public function setFilePermissions(string $mask): void
259259

260260
public function getDirPermissions(): ?int
261261
{
262-
return $this->dirPermissions === '' ? null : octdec($this->dirPermissions);
262+
return $this->dirPermissions === '' ? null : (int) octdec($this->dirPermissions);
263263
}
264264

265265
public function setDirPermissions(string $mask): void

0 commit comments

Comments
 (0)