PEAR_Validate::_addFailure

PEAR_Validate::_addFailure() – _addFailure

Synopsis

require_once '/Validate.php';

void PEAR_Validate::_addFailure ( string $field , string $reason )

Description

add a validation warning from one of the channel validation functions. Use this for a non-fatal warning of a potential problem situation.

Parameter

string $field

The package.xml section being validated (such as version or dependencies)

string $reason

A human-readable reason that validation failed.

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Validation class for package.xml - channel-level advanced validation (Previous) _addWarning (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.