From c15d02389e67a880e7b4c6b19f2b06722efa4e6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 6 Nov 2020 16:22:55 +0100 Subject: [PATCH] Continued: - first primitive type added, more will follow MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- contrib/audio.php | 2 +- framework/main/classes/request/class_BaseRequest.php | 4 ++-- framework/main/interfaces/request/class_Requestable.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/audio.php b/contrib/audio.php index 9d093276..3bf11ac5 100644 --- a/contrib/audio.php +++ b/contrib/audio.php @@ -55,7 +55,7 @@ function analyzeForNoiseOnly ($data) { } //$pcm = fopen('output1.pcm', 'rb') or die('Cannot read from audio'); -$pcm = fopen('/dev/dsp2', 'rb') or die('Cannot read from audio' . PHP_EOL); +$pcm = fopen('/dev/dsp', 'rb') or die('Cannot read from audio' . PHP_EOL); $empty = str_repeat(chr(128), $GLOBALS['options']['buffer_size']); diff --git a/framework/main/classes/request/class_BaseRequest.php b/framework/main/classes/request/class_BaseRequest.php index c56648f1..b855bb03 100644 --- a/framework/main/classes/request/class_BaseRequest.php +++ b/framework/main/classes/request/class_BaseRequest.php @@ -124,8 +124,8 @@ abstract class BaseRequest extends BaseFrameworkSystem { * @param $isValid Whether the request is valid * @return void */ - public final function requestIsValid ($isValid = true) { - $this->requestIsValid = (bool) $isValid; + public final function requestIsValid (bool $isValid = true) { + $this->requestIsValid = $isValid; } /** diff --git a/framework/main/interfaces/request/class_Requestable.php b/framework/main/interfaces/request/class_Requestable.php index 34ca1613..60def40c 100644 --- a/framework/main/interfaces/request/class_Requestable.php +++ b/framework/main/interfaces/request/class_Requestable.php @@ -75,7 +75,7 @@ interface Requestable extends FrameworkInterface { * @param $isValid Whether the request is valid * @return void */ - function requestIsValid ($isValid = true); + function requestIsValid (bool $isValid = true); /** * Returns whether this request is valid -- 2.39.2