for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the sj-i/php-profiler package.
*
* (c) sji <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace PhpProfiler\Lib\PhpInternals\Types\Zend;
use FFI\CData;
class ZvalU2
{
/** @psalm-suppress PropertyNotSetInConstructor */
public int $next;
public int $opline_num;
public int $lineno;
public int $num_args;
public int $fe_pos;
public int $fe_iter_idx;
public int $access_flags;
public int $property_guard;
public int $constant_flags;
public int $extra;
public function __construct(
private CData $cdata
) {
unset($this->next);
unset($this->opline_num);
unset($this->lineno);
unset($this->num_args);
unset($this->fe_pos);
unset($this->fe_iter_idx);
unset($this->access_flags);
unset($this->property_guard);
unset($this->constant_flags);
unset($this->extra);
}
public function __get(string $field_name): mixed
return $this->cdata->$field_name;