Skip to content

Commit

Permalink
fixes Creation of dynamic property on PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nojimage committed Jun 5, 2023
1 parent 42a7686 commit e3eb976
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 32 deletions.
4 changes: 1 addition & 3 deletions tests/TestCase/AutolinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
* @copyright Copyright © 2010, Mike Cochrane, Nick Pope
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
* @property Autolink $linker
*/
class AutolinkTest extends TestCase
{
/** @var Autolink $linker */
private $linker;
private Autolink $linker;

protected function setUp(): void
{
Expand Down
5 changes: 1 addition & 4 deletions tests/TestCase/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
*/
class ConfigurationTest extends TestCase
{
/**
* @var Configuration
*/
private $config;
private Configuration $config;

/**
* Set up fixtures
Expand Down
15 changes: 10 additions & 5 deletions tests/TestCase/ConformanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,19 @@
* @copyright Copyright 2014, Mike Cochrane, Nick Pope, Takashi Nojima
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
* @property Autolink $linker
* @property Extractor $extractor
* @property HitHighlighter $highlighter
* @property Validator $validator
* @property Parser $parser
*/
class ConformanceTest extends TestCase
{
private Autolink $linker;

private Extractor $extractor;

private HitHighlighter $highlighter;

private Validator $validator;

private Parser $parser;

protected function setUp(): void
{
parent::setUp();
Expand Down
5 changes: 1 addition & 4 deletions tests/TestCase/ExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@
* @copyright Copyright © 2010, Mike Cochrane, Nick Pope
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
* @param Extractor $extractor
*/
class ExtractorTest extends TestCase
{
/**
* A Test Subject
*
* @var Extractor
*/
private $extractor;
private Extractor $extractor;

protected function setUp(): void
{
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/HitHighlighterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
* @copyright Copyright © 2010, Nick Pope
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
* @property HitHighlighter $highlighter
*/
class HitHighlighterTest extends TestCase
{
private HitHighlighter $highlighter;

protected function setUp(): void
{
parent::setUp();
Expand Down
15 changes: 10 additions & 5 deletions tests/TestCase/InternalEncodingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@
* @copyright Copyright 2014, Mike Cochrane, Nick Pope, Takashi Nojima
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
* @property Autolink $linker
* @property Extractor $extractor
* @property HitHighlighter $highlighter
* @property Validator $validator
* @property Parser $parser
*/
class InternalEncodingTest extends TestCase
{
private Autolink $linker;

private Extractor $extractor;

private HitHighlighter $highlighter;

private Validator $validator;

private Parser $parser;

protected function setUp(): void
{
parent::setUp();
Expand Down
5 changes: 1 addition & 4 deletions tests/TestCase/ParseResultsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
*/
class ParseResultsTest extends TestCase
{
/**
* @var ParseResults
*/
private $results;
private ParseResults $results;

/**
* Set up fixtures
Expand Down
5 changes: 1 addition & 4 deletions tests/TestCase/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
*/
class ParserTest extends TestCase
{
/**
* @var Parser
*/
private $parser;
private Parser $parser;

/**
* Set up fixtures
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/TldConformanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
* @copyright Copyright 2017, Takashi Nojima
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
* @property Extractor $extractor
*/
class TldConformanceTest extends TestCase
{
private Extractor $extractor;

protected function setUp(): void
{
parent::setUp();
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
* @copyright Copyright © 2010, Nick Pope
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2.0
* @package Twitter.Text
* @property Validator $validator
*/
class ValidatorTest extends TestCase
{
private Validator $validator;

protected function setUp(): void
{
parent::setUp();
Expand Down

0 comments on commit e3eb976

Please sign in to comment.