From fd82ba073d8b22c27ab4fd25322b66649306800d Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Thu, 24 Oct 2024 21:25:38 +0200 Subject: [PATCH] add int cast --- www/src/Controller/Generator.php | 2 +- www/src/Controller/Index.php | 2 +- www/src/Controller/Integration.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/src/Controller/Generator.php b/www/src/Controller/Generator.php index 6afc12c..ba5f0f4 100644 --- a/www/src/Controller/Generator.php +++ b/www/src/Controller/Generator.php @@ -45,7 +45,7 @@ public function show(): mixed $data = [ 'title' => 'DTO Generator | TypeSchema', 'method' => explode('::', __METHOD__), - 'types' => array_chunk($types, ceil(count($types) / 2), true), + 'types' => array_chunk($types, (int) ceil(count($types) / 2), true), ]; $templateFile = __DIR__ . '/../../resources/template/generator.php'; diff --git a/www/src/Controller/Index.php b/www/src/Controller/Index.php index 51b4398..144acb6 100644 --- a/www/src/Controller/Index.php +++ b/www/src/Controller/Index.php @@ -35,7 +35,7 @@ public function show(): mixed $data = [ 'method' => explode('::', __METHOD__), - 'types' => array_chunk($types, ceil(count($types) / 2), true), + 'types' => array_chunk($types, (int) ceil(count($types) / 2), true), ]; $templateFile = __DIR__ . '/../../resources/template/index.php'; diff --git a/www/src/Controller/Integration.php b/www/src/Controller/Integration.php index 94b31c7..2e97a05 100644 --- a/www/src/Controller/Integration.php +++ b/www/src/Controller/Integration.php @@ -36,7 +36,7 @@ public function show(): mixed $data = [ 'title' => 'Integration | TypeSchema', 'method' => explode('::', __METHOD__), - 'types' => array_chunk($types, ceil(count($types) / 2), true), + 'types' => array_chunk($types, (int) ceil(count($types) / 2), true), ]; $templateFile = __DIR__ . '/../../resources/template/integration.php';