Skip to content

Commit

Permalink
chore(Updater): Activate strict_types (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtrichards authored Aug 8, 2024
1 parent 3b634b9 commit b1a6143
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildVersionFile.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

declare(strict_types=1);

$currentTag = trim(shell_exec('git describe --tags'));
$currentTag = trim(shell_exec('git describe --tags') ?? '');
exec('git diff-files --quiet', $output, $returnValue);

$dirty = $returnValue === 0 ? '' : ' dirty';
Expand Down
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016-2017 Lukas Reschke <[email protected]>
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions index.web.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016-2017 Lukas Reschke <[email protected]>
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions lib/CommandApplication.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
*
Expand Down
3 changes: 3 additions & 0 deletions lib/LogException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016 Lukas Reschke <[email protected]>
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions lib/RecursiveDirectoryIteratorWithoutData.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016 Lukas Reschke <[email protected]>
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions lib/UpdateCommand.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
* @copyright Copyright (c) 2017 Lukas Reschke <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions lib/UpdateException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016 Lukas Reschke <[email protected]>
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions lib/Updater.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* @copyright Copyright (c) 2016-2017 Lukas Reschke <[email protected]>
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
Expand Down
Binary file modified updater.phar
Binary file not shown.
2 changes: 2 additions & 0 deletions updater.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php

declare(strict_types=1);

require __DIR__ . '/vendor/autoload.php';

ini_set('display_errors', '0');
Expand Down

0 comments on commit b1a6143

Please sign in to comment.