Skip to content

Commit

Permalink
#2407 - Adjust name of stdClass inside Zephir code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Sep 10, 2023
1 parent cf22bd9 commit c18ba4e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions stub/cast.zep
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Cast
*/
public function testIntCastFromStdClass() -> int
{
return (int) (new \StdClass);
return (int) (new \stdClass);
}

/**
Expand All @@ -174,7 +174,7 @@ class Cast
public function testIntCastFromVariableStdClass() -> int
{
var a;
let a = new \StdClass;
let a = new \stdClass;
return (int) a;
}

Expand Down Expand Up @@ -271,7 +271,7 @@ class Cast
*/
public function testFloatCastFromStdClass() -> float
{
return (float) (new \StdClass);
return (float) (new \stdClass);
}

/**
Expand All @@ -281,7 +281,7 @@ class Cast
public function testFloatCastFromVariableStdClass() -> float
{
var a;
let a = new \StdClass;
let a = new \stdClass;
return (float) a;
}

Expand Down Expand Up @@ -324,7 +324,7 @@ class Cast
public function testBooleanCastFromObject() -> boolean
{
var simpleObject;
let simpleObject = new \StdClass();
let simpleObject = new \stdClass();
return (boolean) simpleObject;
}

Expand Down Expand Up @@ -486,7 +486,7 @@ class Cast
public function testArrayCastFromVariableStdClass() -> array
{
var uids;
let uids = new \StdClass;
let uids = new \stdClass;
let uids->p1 = "v1";
let uids->p2 = "v2";
let uids = (array) uids;
Expand Down
2 changes: 1 addition & 1 deletion stub/mcall.zep
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Mcall
return driverOptions;
}

public function testObjectParamCastStdClass(<\StdClass> param)
public function testObjectParamCastStdClass(<\stdClass> param)
{
return param;
}
Expand Down
2 changes: 1 addition & 1 deletion stub/unsettest.zep
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Unsettest
public function testStdClassUnset()
{
var simpleObject;
let simpleObject = new \StdClass();
let simpleObject = new \stdClass();

let simpleObject->property1 = 12345;
let simpleObject->property2 = "test";
Expand Down

0 comments on commit c18ba4e

Please sign in to comment.