for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* OpauthValidationException
* Exception padded with some data so its handler can do its job intelligently.
* @author Will Morgan <@willmorgan>
* @copyright Copyright (c) 2013, Better Brief LLP
*/
class OpauthValidationException extends Exception {
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
protected $data;
public function __construct($message, $code, $data = null) {
parent::__construct($message, $code);
$this->setData($data);
}
public function setData($data) {
$this->data = $data;
public function getData() {
return $this->data;
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.