php-src/ext/standard/dir.stub.php
Nikita Popov 29c6eb6cf5 Declare Directory properties
Some error handling test changes, as changes to the $handle
property are now detected earlier.
2021-08-19 10:39:23 +02:00

30 lines
528 B
PHP
Executable File

<?php
/** @generate-class-entries */
class Directory
{
public readonly string $path;
/** @var resource */
public readonly mixed $handle;
/**
* @tentative-return-type
* @implementation-alias closedir
*/
public function close(): void {}
/**
* @tentative-return-type
* @implementation-alias rewinddir
*/
public function rewind(): void {}
/**
* @tentative-return-type
* @implementation-alias readdir
*/
public function read(): string|false {}
}