Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reflection section sync with EN #858

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions reference/reflection/reflectionproperty/construct.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: yannick Status: ready -->
<!-- EN-Revision: c1aba02c4753e56b4ab5053a0ab5be8584cbf8bc Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="reflectionproperty.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -57,6 +57,7 @@
<programlisting role="php">
<![CDATA[
<?php

class Str
{
public $length = 5;
Expand All @@ -75,7 +76,7 @@ printf(
$prop->isStatic() ? ' static' : '',
$prop->getName(),
$prop->isDefault() ? 'declared at compile-time' : 'created at run-time',
var_export(Reflection::getModifierNames($prop->getModifiers()), 1)
var_export(Reflection::getModifierNames($prop->getModifiers()), true)
);

// Création d'une instance de Str
Expand All @@ -92,6 +93,7 @@ var_dump($prop->getValue($obj));

// Affiche l'objet
var_dump($obj);

?>
]]>
</programlisting>
Expand All @@ -117,7 +119,8 @@ object(Str)#2 (1) {
<![CDATA[
<?php

class Foo {
class Foo
{
public $x = 1;
protected $y = 2;
private $z = 3;
Expand Down