wiki.techinc.nl/includes/libs/DebugInfo/DebugInfoTrait.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
344 B
PHP
Raw Normal View History

<?php
namespace Wikimedia\DebugInfo;
/**
* A trait for automatic __debugInfo() modifications.
*
* Recursion into properties is prevented if they have a @noVarDump annotation
* in their doc comment. See T277618.
*
* @since 1.40
*/
trait DebugInfoTrait {
public function __debugInfo() {
return DumpUtils::objectToArray( $this );
}
}