Skip to content

Commit

Permalink
Merge pull request #842 from jtojnar/one-dot-eight
Browse files Browse the repository at this point in the history
Remove strict_types declaration
  • Loading branch information
mblaney committed Sep 20, 2023
2 parents 65b095d + b242ee9 commit 419f1ec
Show file tree
Hide file tree
Showing 130 changed files with 6 additions and 145 deletions.
2 changes: 2 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
'@PHP71Migration:risky' => true,
'void_return' => false,
'@PHPUnit84Migration:risky' => true,
'declare_strict_types' => false,
])
->setRiskyAllowed(true)
->setFinder($finder)
;
2 changes: 0 additions & 2 deletions build/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

declare(strict_types=1);

require_once dirname(__DIR__) . '/SimplePie.compiled.php';
require_once dirname(__DIR__) . '/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php';
2 changes: 0 additions & 2 deletions build/charset.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

require_once '../autoloader.php';

function normalize_character_set($charset)
Expand Down
2 changes: 0 additions & 2 deletions build/compile.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

// Set up our constants
define('SP_PATH', dirname(__FILE__, 2));
define('COMPILED', SP_PATH . DIRECTORY_SEPARATOR . 'SimplePie.compiled.php');
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Author.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Cache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Cache/Base.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Cache/DB.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Cache/File.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Cache/Memcache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Cache/Memcached.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Cache/MySQL.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
2 changes: 0 additions & 2 deletions library/SimplePie/Cache/Redis.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* SimplePie Redis Cache Extension
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Caption.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Category.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Content/Type/Sniffer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Copyright.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Core.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Credit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Decode/HTML/Entities.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Enclosure.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Exception.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/File.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/HTTP/Parser.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/IRI.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Item.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Locator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Misc.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Net/IPv6.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Parse/Date.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Parser.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Rating.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Registry.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Restriction.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Sanitize.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/Source.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/XML/Declaration/Parser.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion library/SimplePie/gzdecode.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Author.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/Base.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/BaseDataCache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/DB.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/DataCache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/File.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/Memcache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/Memcached.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/MySQL.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/Psr16.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Cache/Redis.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Caption.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Category.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Content/Type/Sniffer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Copyright.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down
1 change: 0 additions & 1 deletion src/Credit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php

declare(strict_types=1);
/**
* SimplePie
*
Expand Down

0 comments on commit 419f1ec

Please sign in to comment.