Skip to content

Commit b1a6143

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

11 files changed

Lines changed: 28 additions & 1 deletion

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 <lukas@statuscode.ch>
47
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>

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 <lukas@statuscode.ch>
47
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>

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 <hey@morrisjobke.de>
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 <lukas@statuscode.ch>
47
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>

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 <lukas@statuscode.ch>
47
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>

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 <hey@morrisjobke.de>
47
* @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch>

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 <lukas@statuscode.ch>
47
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>

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 <lukas@statuscode.ch>
47
* @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>

updater.phar

188 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)