Skip to content

Commit

Permalink
add int cast
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Oct 24, 2024
1 parent 1e6e78b commit fd82ba0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/src/Controller/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion www/src/Controller/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion www/src/Controller/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit fd82ba0

Please sign in to comment.