Skip to content
Open
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions .psalm/autoloader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php // phpcs:disable
if (defined('ABSPATH')) {
return;
}

define('ABSPATH', realpath('./vendor/roots/wordpress') . DIRECTORY_SEPARATOR);
define('WPINC', 'wp-includes');
define('WP_CONTENT_DIR', ABSPATH . 'wp-content');

require_once realpath('./vendor/roots/wordpress/wp-includes/class-wp-rewrite.php');
require_once realpath('./vendor/roots/wordpress/wp-includes/load.php');
require_once realpath('./vendor/roots/wordpress/wp-includes/plugin.php');
require_once realpath('./vendor/roots/wordpress/wp-includes/functions.php');
require_once realpath('./vendor/roots/wordpress/wp-includes/option.php');
require_once realpath('./vendor/roots/wordpress/wp-includes/link-template.php');
require_once realpath('./vendor/roots/wordpress/wp-includes/rest-api.php');
39 changes: 37 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
{
"require": {
"phpunit/phpunit": "^6.5"
"name": "elcobvg/wordpress-opcache",
"description": "OPcache Object Cache plugin for WordPress. Faster than Redis, Memcache or APC.",
"license": "GPL-3.0-or-later",
"type": "wordpress-dropin",
"keywords": [
"wordpress",
"opcache",
"php"
],
"support": {
"issues": "https://github.com/elcobvg/wordpress-opcache/issues"
},
"require": {
"php": ">=7",
"ext-zend-opcache": "*"
},
"require-dev": {
"phpunit/phpunit": "^6.5|^9",
"squizlabs/php_codesniffer": "3.*",
"vimeo/psalm": "@stable",
"roots/wordpress": "@stable"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"cs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"psalm": "@php ./vendor/vimeo/psalm/psalm",
"tests": "@php ./vendor/phpunit/phpunit/phpunit",
"tests:no-cov": "@php ./vendor/phpunit/phpunit/phpunit --no-coverage",
"qa": [
"@cs",
"@psalm",
"@tests:no-cov"
]
},
"extra": {
"wordpress-install-dir": "vendor/roots/wordpress"
}
}
Loading