Skip to content

Commit

Permalink
Improve PHP 7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Aug 1, 2022
1 parent 33c60a3 commit c6aa916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArrayFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function set($key, $value = null)
*/
protected function makeArrayItem(string $key, string $valueType, $value): ArrayItem
{
return (str_contains($key, '.'))
return (strpos($key, '.') !== false)
? $this->makeAstArrayRecursive($key, $valueType, $value)
: new ArrayItem(
$this->makeAstNode($valueType, $value),
Expand Down

0 comments on commit c6aa916

Please sign in to comment.