test-const.php « code-checker « app « data « tests - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
<?php
/**
* Class BadClass - accessing consts on blacklisted classes is not allowed
*/
class BadClass {
public function foo() {
$bar = OC_API::ADMIN_AUTH;
}
}