Skip to content

Commit 24335a8

Browse files
Update dependencies for php 8.3 support
1 parent a692456 commit 24335a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+132
-132
lines changed

src/Operation/AbstractOperation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@ public function __construct(string $file, string $target)
4545
/**
4646
* @return string
4747
*/
48-
public function getLocation()
48+
public function getLocation(): string
4949
{
5050
return $this->file;
5151
}
5252

5353
/**
5454
* @return int
5555
*/
56-
public function getLevel()
56+
public function getLevel(): int
5757
{
5858
return $this->level;
5959
}
6060

6161
/**
6262
* @return int
6363
*/
64-
public function getLine()
64+
public function getLine(): int
6565
{
6666
return 0;
6767
}

src/Operation/ClassConstantAdded.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,23 @@ public function __construct($context, $fileAfter, ClassConst $constantAfter, Stm
6969
/**
7070
* @return string
7171
*/
72-
public function getLocation()
72+
public function getLocation(): string
7373
{
7474
return $this->fileAfter;
7575
}
7676

7777
/**
7878
* @return int
7979
*/
80-
public function getLine()
80+
public function getLine(): int
8181
{
8282
return $this->constantAfter->getLine();
8383
}
8484

8585
/**
8686
* @return string
8787
*/
88-
public function getTarget()
88+
public function getTarget(): string
8989
{
9090
return ClassConstant::getFullyQualifiedName($this->contextAfter, $this->constantAfter);
9191
}

src/Operation/ClassConstantMoved.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct($context, $fileBefore, ClassConst $constantBefore, S
8484
*
8585
* @return string
8686
*/
87-
public function getLocation()
87+
public function getLocation(): string
8888
{
8989
return $this->fileBefore;
9090
}
@@ -94,7 +94,7 @@ public function getLocation()
9494
*
9595
* @return int
9696
*/
97-
public function getLine()
97+
public function getLine(): int
9898
{
9999
return $this->constantBefore->getLine();
100100
}
@@ -104,7 +104,7 @@ public function getLine()
104104
*
105105
* @return string
106106
*/
107-
public function getTarget()
107+
public function getTarget(): string
108108
{
109109
return ClassConstant::getFullyQualifiedName($this->contextBefore, $this->constantBefore);
110110
}

src/Operation/ClassConstantOperation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ abstract class ClassConstantOperation extends Operation
2323
*
2424
* @return mixed
2525
*/
26-
public function getCode()
26+
public function getCode(): string
2727
{
2828
return $this->code[$this->context];
2929
}
@@ -33,7 +33,7 @@ public function getCode()
3333
*
3434
* @return mixed
3535
*/
36-
public function getLevel()
36+
public function getLevel(): int
3737
{
3838
return $this->level[$this->context];
3939
}

src/Operation/ClassConstantRemoved.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ public function __construct($context, $fileBefore, ClassConst $constantBefore, S
7070
/**
7171
* @return string
7272
*/
73-
public function getLocation()
73+
public function getLocation(): string
7474
{
7575
return $this->fileBefore;
7676
}
7777

7878
/**
7979
* @return int
8080
*/
81-
public function getLine()
81+
public function getLine(): int
8282
{
8383
return $this->constantBefore->getLine();
8484
}
8585

8686
/**
8787
* @return string
8888
*/
89-
public function getTarget()
89+
public function getTarget(): string
9090
{
9191
return ClassConstant::getFullyQualifiedName($this->contextBefore, $this->constantBefore);
9292
}

src/Operation/ClassConstructorObjectParameterAdded.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ClassConstructorObjectParameterAdded extends ClassMethodParameterAdded
3838
*
3939
* @return mixed
4040
*/
41-
public function getLevel()
41+
public function getLevel(): int
4242
{
4343
return $this->level[$this->context];
4444
}

src/Operation/ClassConstructorOptionalParameterAdded.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ClassConstructorOptionalParameterAdded extends ClassMethodParameterAdded
3838
*
3939
* @return mixed
4040
*/
41-
public function getLevel()
41+
public function getLevel(): int
4242
{
4343
return $this->level;
4444
}

src/Operation/ClassExtendsAdded.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,23 @@ public function __construct(BaseClass $class, $target)
5454
/**
5555
* @return string
5656
*/
57-
public function getTarget()
57+
public function getTarget(): string
5858
{
5959
return Class_Statement::getFullyQualifiedName($this->class);
6060
}
6161

6262
/**
6363
* @return string
6464
*/
65-
public function getLocation()
65+
public function getLocation(): string
6666
{
6767
return $this->target;
6868
}
6969

7070
/**
7171
* @return int
7272
*/
73-
public function getLine()
73+
public function getLine(): int
7474
{
7575
return 0;
7676
}
@@ -80,7 +80,7 @@ public function getLine()
8080
*
8181
* @return mixed
8282
*/
83-
public function getLevel()
83+
public function getLevel(): int
8484
{
8585
return $this->level;
8686
}

src/Operation/ClassExtendsRemove.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,23 @@ public function __construct(BaseClass $class, $target)
5454
/**
5555
* @return string
5656
*/
57-
public function getTarget()
57+
public function getTarget(): string
5858
{
5959
return Class_Alias::getFullyQualifiedName($this->class);
6060
}
6161

6262
/**
6363
* @return string
6464
*/
65-
public function getLocation()
65+
public function getLocation(): string
6666
{
6767
return $this->target;
6868
}
6969

7070
/**
7171
* @return int
7272
*/
73-
public function getLine()
73+
public function getLine(): int
7474
{
7575
return 0;
7676
}
@@ -80,7 +80,7 @@ public function getLine()
8080
*
8181
* @return mixed
8282
*/
83-
public function getLevel()
83+
public function getLevel(): int
8484
{
8585
return $this->level;
8686
}

src/Operation/ClassLikeApiAnnotationOperation.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(ClassLike $classLike, $target)
4949
/**
5050
* @inheritDoc
5151
*/
52-
public function getTarget()
52+
public function getTarget(): string
5353
{
5454
$result = '';
5555

@@ -67,15 +67,15 @@ public function getTarget()
6767
/**
6868
* @inheritDoc
6969
*/
70-
public function getLocation()
70+
public function getLocation(): string
7171
{
7272
return $this->target;
7373
}
7474

7575
/**
7676
* @inheritDoc
7777
*/
78-
public function getLine()
78+
public function getLine(): int
7979
{
8080
return 0;
8181
}
@@ -85,7 +85,7 @@ public function getLine()
8585
*
8686
* @inheritDoc
8787
*/
88-
public function getLevel()
88+
public function getLevel(): int
8989
{
9090
return $this->level;
9191
}

0 commit comments

Comments
 (0)