Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(Updater): Activate strict_types #572

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading