Skip to content

Commit

Permalink
Type coercion & strict data types in PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust committed Jul 13, 2022
1 parent 7f312d9 commit 06aa8ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
@@ -1,4 +1,5 @@
<?php
<?php declare(strict_types=1);

function getPosts(): array
{
return [
Expand Down

0 comments on commit 06aa8ce

Please sign in to comment.