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';