Skip to content

Commit 399547c

Browse files
committed
update php samples
1 parent daa8eb4 commit 399547c

File tree

93 files changed

+546
-546
lines changed

Some content is hidden

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

93 files changed

+546
-546
lines changed

samples/client/echo_api/php-nextgen-streaming/phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
33
<coverage processUncoveredFiles="true">
44
<include>
5-
<directory suffix=".php">./src/Api</directory>
6-
<directory suffix=".php">./src/Model</directory>
5+
<directory suffix=".php">./src\/Api</directory>
6+
<directory suffix=".php">./src\/Model</directory>
77
</include>
88
</coverage>
99
<testsuites>

samples/client/echo_api/php-nextgen/phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
33
<coverage processUncoveredFiles="true">
44
<include>
5-
<directory suffix=".php">./src/Api</directory>
6-
<directory suffix=".php">./src/Model</directory>
5+
<directory suffix=".php">./src\/Api</directory>
6+
<directory suffix=".php">./src\/Model</directory>
77
</include>
88
</coverage>
99
<testsuites>

samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
33
<coverage processUncoveredFiles="true">
44
<include>
5-
<directory suffix=".php">./src/Api</directory>
6-
<directory suffix=".php">./src/Model</directory>
5+
<directory suffix=".php">./src\/Api</directory>
6+
<directory suffix=".php">./src\/Model</directory>
77
</include>
88
</coverage>
99
<testsuites>

samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,24 +352,24 @@ public function setMapOfMapProperty($map_of_map_property)
352352
/**
353353
* Returns true if offset exists. False otherwise.
354354
*
355-
* @param integer $offset Offset
355+
* @param integer|string $offset Offset
356356
*
357357
* @return boolean
358358
*/
359-
public function offsetExists($offset): bool
359+
public function offsetExists(mixed $offset): bool
360360
{
361361
return isset($this->container[$offset]);
362362
}
363363

364364
/**
365365
* Gets offset.
366366
*
367-
* @param integer $offset Offset
367+
* @param integer|string $offset Offset
368368
*
369369
* @return mixed|null
370370
*/
371371
#[\ReturnTypeWillChange]
372-
public function offsetGet($offset)
372+
public function offsetGet(mixed $offset)
373373
{
374374
return $this->container[$offset] ?? null;
375375
}
@@ -394,11 +394,11 @@ public function offsetSet($offset, $value): void
394394
/**
395395
* Unsets offset.
396396
*
397-
* @param integer $offset Offset
397+
* @param integer|string $offset Offset
398398
*
399399
* @return void
400400
*/
401-
public function offsetUnset($offset): void
401+
public function offsetUnset(mixed $offset): void
402402
{
403403
unset($this->container[$offset]);
404404
}

samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,24 +352,24 @@ public function setSingleRefType($single_ref_type)
352352
/**
353353
* Returns true if offset exists. False otherwise.
354354
*
355-
* @param integer $offset Offset
355+
* @param integer|string $offset Offset
356356
*
357357
* @return boolean
358358
*/
359-
public function offsetExists($offset): bool
359+
public function offsetExists(mixed $offset): bool
360360
{
361361
return isset($this->container[$offset]);
362362
}
363363

364364
/**
365365
* Gets offset.
366366
*
367-
* @param integer $offset Offset
367+
* @param integer|string $offset Offset
368368
*
369369
* @return mixed|null
370370
*/
371371
#[\ReturnTypeWillChange]
372-
public function offsetGet($offset)
372+
public function offsetGet(mixed $offset)
373373
{
374374
return $this->container[$offset] ?? null;
375375
}
@@ -394,11 +394,11 @@ public function offsetSet($offset, $value): void
394394
/**
395395
* Unsets offset.
396396
*
397-
* @param integer $offset Offset
397+
* @param integer|string $offset Offset
398398
*
399399
* @return void
400400
*/
401-
public function offsetUnset($offset): void
401+
public function offsetUnset(mixed $offset): void
402402
{
403403
unset($this->container[$offset]);
404404
}

samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,24 +358,24 @@ public function setColor($color)
358358
/**
359359
* Returns true if offset exists. False otherwise.
360360
*
361-
* @param integer $offset Offset
361+
* @param integer|string $offset Offset
362362
*
363363
* @return boolean
364364
*/
365-
public function offsetExists($offset): bool
365+
public function offsetExists(mixed $offset): bool
366366
{
367367
return isset($this->container[$offset]);
368368
}
369369

370370
/**
371371
* Gets offset.
372372
*
373-
* @param integer $offset Offset
373+
* @param integer|string $offset Offset
374374
*
375375
* @return mixed|null
376376
*/
377377
#[\ReturnTypeWillChange]
378-
public function offsetGet($offset)
378+
public function offsetGet(mixed $offset)
379379
{
380380
return $this->container[$offset] ?? null;
381381
}
@@ -400,11 +400,11 @@ public function offsetSet($offset, $value): void
400400
/**
401401
* Unsets offset.
402402
*
403-
* @param integer $offset Offset
403+
* @param integer|string $offset Offset
404404
*
405405
* @return void
406406
*/
407-
public function offsetUnset($offset): void
407+
public function offsetUnset(mixed $offset): void
408408
{
409409
unset($this->container[$offset]);
410410
}

samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,24 +386,24 @@ public function setMessage($message)
386386
/**
387387
* Returns true if offset exists. False otherwise.
388388
*
389-
* @param integer $offset Offset
389+
* @param integer|string $offset Offset
390390
*
391391
* @return boolean
392392
*/
393-
public function offsetExists($offset): bool
393+
public function offsetExists(mixed $offset): bool
394394
{
395395
return isset($this->container[$offset]);
396396
}
397397

398398
/**
399399
* Gets offset.
400400
*
401-
* @param integer $offset Offset
401+
* @param integer|string $offset Offset
402402
*
403403
* @return mixed|null
404404
*/
405405
#[\ReturnTypeWillChange]
406-
public function offsetGet($offset)
406+
public function offsetGet(mixed $offset)
407407
{
408408
return $this->container[$offset] ?? null;
409409
}
@@ -428,11 +428,11 @@ public function offsetSet($offset, $value): void
428428
/**
429429
* Unsets offset.
430430
*
431-
* @param integer $offset Offset
431+
* @param integer|string $offset Offset
432432
*
433433
* @return void
434434
*/
435-
public function offsetUnset($offset): void
435+
public function offsetUnset(mixed $offset): void
436436
{
437437
unset($this->container[$offset]);
438438
}

samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,24 +318,24 @@ public function setArrayArrayNumber($array_array_number)
318318
/**
319319
* Returns true if offset exists. False otherwise.
320320
*
321-
* @param integer $offset Offset
321+
* @param integer|string $offset Offset
322322
*
323323
* @return boolean
324324
*/
325-
public function offsetExists($offset): bool
325+
public function offsetExists(mixed $offset): bool
326326
{
327327
return isset($this->container[$offset]);
328328
}
329329

330330
/**
331331
* Gets offset.
332332
*
333-
* @param integer $offset Offset
333+
* @param integer|string $offset Offset
334334
*
335335
* @return mixed|null
336336
*/
337337
#[\ReturnTypeWillChange]
338-
public function offsetGet($offset)
338+
public function offsetGet(mixed $offset)
339339
{
340340
return $this->container[$offset] ?? null;
341341
}
@@ -360,11 +360,11 @@ public function offsetSet($offset, $value): void
360360
/**
361361
* Unsets offset.
362362
*
363-
* @param integer $offset Offset
363+
* @param integer|string $offset Offset
364364
*
365365
* @return void
366366
*/
367-
public function offsetUnset($offset): void
367+
public function offsetUnset(mixed $offset): void
368368
{
369369
unset($this->container[$offset]);
370370
}

samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,24 +318,24 @@ public function setArrayNumber($array_number)
318318
/**
319319
* Returns true if offset exists. False otherwise.
320320
*
321-
* @param integer $offset Offset
321+
* @param integer|string $offset Offset
322322
*
323323
* @return boolean
324324
*/
325-
public function offsetExists($offset): bool
325+
public function offsetExists(mixed $offset): bool
326326
{
327327
return isset($this->container[$offset]);
328328
}
329329

330330
/**
331331
* Gets offset.
332332
*
333-
* @param integer $offset Offset
333+
* @param integer|string $offset Offset
334334
*
335335
* @return mixed|null
336336
*/
337337
#[\ReturnTypeWillChange]
338-
public function offsetGet($offset)
338+
public function offsetGet(mixed $offset)
339339
{
340340
return $this->container[$offset] ?? null;
341341
}
@@ -360,11 +360,11 @@ public function offsetSet($offset, $value): void
360360
/**
361361
* Unsets offset.
362362
*
363-
* @param integer $offset Offset
363+
* @param integer|string $offset Offset
364364
*
365365
* @return void
366366
*/
367-
public function offsetUnset($offset): void
367+
public function offsetUnset(mixed $offset): void
368368
{
369369
unset($this->container[$offset]);
370370
}

samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,24 +401,24 @@ public function setArrayArrayOfModel($array_array_of_model)
401401
/**
402402
* Returns true if offset exists. False otherwise.
403403
*
404-
* @param integer $offset Offset
404+
* @param integer|string $offset Offset
405405
*
406406
* @return boolean
407407
*/
408-
public function offsetExists($offset): bool
408+
public function offsetExists(mixed $offset): bool
409409
{
410410
return isset($this->container[$offset]);
411411
}
412412

413413
/**
414414
* Gets offset.
415415
*
416-
* @param integer $offset Offset
416+
* @param integer|string $offset Offset
417417
*
418418
* @return mixed|null
419419
*/
420420
#[\ReturnTypeWillChange]
421-
public function offsetGet($offset)
421+
public function offsetGet(mixed $offset)
422422
{
423423
return $this->container[$offset] ?? null;
424424
}
@@ -443,11 +443,11 @@ public function offsetSet($offset, $value): void
443443
/**
444444
* Unsets offset.
445445
*
446-
* @param integer $offset Offset
446+
* @param integer|string $offset Offset
447447
*
448448
* @return void
449449
*/
450-
public function offsetUnset($offset): void
450+
public function offsetUnset(mixed $offset): void
451451
{
452452
unset($this->container[$offset]);
453453
}

0 commit comments

Comments
 (0)