[web-php] master: Short scalar cast (#531)

From: Date: Tue, 28 Jun 2022 11:15:42 +0000
Subject: [web-php] master: Short scalar cast (#531)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-30144@lists.php.net to get a copy of this message
Author: Mathias Reker ⚡️ (MathiasReker) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2022-06-28T12:09:43+01:00 Commit: https://github.com/php/web-php/commit/6f06ab9a28e4206883bf1d9b8f84bf33ecd322b3 Raw diff: https://github.com/php/web-php/commit/6f06ab9a28e4206883bf1d9b8f84bf33ecd322b3.diff Short scalar cast (#531) Changed paths: M submit-event.php Diff: diff --git a/submit-event.php b/submit-event.php index adba380c1..769cec863 100644 --- a/submit-event.php +++ b/submit-event.php @@ -7,7 +7,7 @@ // No errors, processing depends on POST data $errors = array(); -$process = (boolean) count($_POST); +$process = [] !== $_POST; // Avoid E_NOTICE errors on incoming vars if not set $vars = array(

« previous php.webmaster (#30144) next »