Skip to content

Commit

Permalink
Fix baseline.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 4, 2020
1 parent 49ecbc3 commit 008ff38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
10 changes: 0 additions & 10 deletions phpstan-baseline.neon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Propel/Runtime/ActiveQuery/ModelCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ public function setPrimaryCriteria(ModelCriteria $criteria, Join $previousJoin)
/**
* Gets the primary criteria for this secondary Criteria
*
* @return $this|null The primary criteria
* @return \Propel\Runtime\ActiveQuery\ModelCriteria|null The primary criteria
*/
public function getPrimaryCriteria()
{
Expand Down
8 changes: 5 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

require_once __DIR__.'/../autoload.php.dist';
require_once __DIR__ . '/../autoload.php.dist';

// check if user is root and
if (function_exists("posix_getuid")) {
if (posix_getuid() == 0)
die("You must run tests suite with an unprivileged user.");
if (posix_getuid() === 0) {
echo('You must run tests suite with an unprivileged user.');
die(1);
}
}

define('DS', DIRECTORY_SEPARATOR);
Expand Down

0 comments on commit 008ff38

Please sign in to comment.