-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add strict union (array|bool) type declaration
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<?php | ||
/** | ||
* @author Pierre-Henry Soria <[email protected]> | ||
* @copyright (c) 2012-2019, Pierre-Henry Soria. All Rights Reserved. | ||
* @copyright (c) 2012-2023, Pierre-Henry Soria. All Rights Reserved. | ||
* @license MIT License; See LICENSE.md and COPYRIGHT.md in the root directory. | ||
* @package PH7 / App / System / Core / Model | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PH7; | ||
|
||
use PH7\Framework\Mvc\Model\Engine\Model; | ||
|
@@ -20,7 +22,7 @@ class UpgradeCoreModel extends Model | |
* | ||
* @return bool|array Returns TRUE if there are no errors, otherwise returns an ARRAY of error information. | ||
*/ | ||
public function run($sSqlUpgradeFile) | ||
public function run(string $sSqlUpgradeFile): bool|array | ||
{ | ||
return Various::execQueryFile($sSqlUpgradeFile); | ||
} | ||
|