Skip to content

Commit

Permalink
chore(Updater): Activate strict_types
Browse files Browse the repository at this point in the history
Signed-off-by: Josh <josh.t.richards@gmail.com>
  • Loading branch information
joshtrichards committed Jul 6, 2024
1 parent 3b634b9 commit 23c0cb0
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 <lukas@statuscode.ch>
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
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 <lukas@statuscode.ch>
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
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 <hey@morrisjobke.de>
*
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 <lukas@statuscode.ch>
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
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 <lukas@statuscode.ch>
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
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 <hey@morrisjobke.de>
* @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch>
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 <lukas@statuscode.ch>
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
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 <lukas@statuscode.ch>
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
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 23c0cb0

Please sign in to comment.