Skip to content

Commit

Permalink
Fix duplicate ID-s in text data
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Aug 13, 2023
1 parent eaea456 commit 6b3136c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PHPStan/AnalyseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class AnalyseTest extends \PHPUnit\Framework\TestCase
{
public function testGenerics()
{
$json = '[{"id":1,"firstName":"Lars","lastName":"Moelleken","city":{"name":"Düsseldorf","plz":null,"infos":["lall"]}}, {"id":1,"firstName":"Sven","lastName":"Moelleken","city":{"name":"Köln","plz":null,"infos":["foo"]}}]';
$json = '[{"id":1,"firstName":"Lars","lastName":"Moelleken","city":{"name":"Düsseldorf","plz":null,"infos":["lall"]}}, {"id":2,"firstName":"Sven","lastName":"Moelleken","city":{"name":"Köln","plz":null,"infos":["foo"]}}]';
$userDataCollection = UserDataCollection::createFromJsonMapper($json);

foreach ($userDataCollection as $user) {
Expand Down

0 comments on commit 6b3136c

Please sign in to comment.