Skip to content

Commit b1a6143

Browse files
chore(Updater): Activate strict_types (#572)
1 parent 3b634b9 commit b1a6143

11 files changed

+28
-1
lines changed

buildVersionFile.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3+
declare(strict_types=1);
34

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

78
$dirty = $returnValue === 0 ? '' : ' dirty';

index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016-2017 Lukas Reschke <[email protected]>
47
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>

index.web.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016-2017 Lukas Reschke <[email protected]>
47
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>

lib/CommandApplication.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
47
*

lib/LogException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016 Lukas Reschke <[email protected]>
47
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>

lib/RecursiveDirectoryIteratorWithoutData.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016 Lukas Reschke <[email protected]>
47
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>

lib/UpdateCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>
47
* @copyright Copyright (c) 2017 Lukas Reschke <[email protected]>

lib/UpdateException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016 Lukas Reschke <[email protected]>
47
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>

lib/Updater.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
/**
36
* @copyright Copyright (c) 2016-2017 Lukas Reschke <[email protected]>
47
* @copyright Copyright (c) 2016 Morris Jobke <[email protected]>

updater.phar

188 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)