Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #817 from Newman101/StrictComparisonEntityPopulator
Browse files Browse the repository at this point in the history
Switched to strict comparison on src/Faker/ORM/Spot/EntityPopulator.php
  • Loading branch information
fzaninotto committed Feb 1, 2016
2 parents e493d3d + 9d16c90 commit b312ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/ORM/Spot/EntityPopulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function guessColumnFormatters(Generator $generator)
$columnTypeGuesser = new ColumnTypeGuesser($generator);
$fields = $this->mapper->fields();
foreach ($fields as $fieldName => $field) {
if ($field['primary'] == true) {
if ($field['primary'] === true) {
continue;
}
if ($formatter = $nameGuesser->guessFormat($fieldName)) {
Expand Down

0 comments on commit b312ab9

Please sign in to comment.