From 04e0fb8d48552b5003dd5508d85de29350b83a96 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Thu, 11 May 2023 11:48:05 +0200 Subject: [PATCH] Add required php extensions for psalm Signed-off-by: jld3103 --- developer_manual/core/index.rst | 1 + developer_manual/core/static-analysis.rst | 31 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 developer_manual/core/static-analysis.rst diff --git a/developer_manual/core/index.rst b/developer_manual/core/index.rst index be2ce9ab9..d7031c5ff 100644 --- a/developer_manual/core/index.rst +++ b/developer_manual/core/index.rst @@ -9,6 +9,7 @@ Please make sure you have set up a :ref:`devenv`. .. toctree:: :maxdepth: 2 + static-analysis unit-testing externalapi architecture/index diff --git a/developer_manual/core/static-analysis.rst b/developer_manual/core/static-analysis.rst new file mode 100644 index 000000000..518367f57 --- /dev/null +++ b/developer_manual/core/static-analysis.rst @@ -0,0 +1,31 @@ +=============== +Static analysis +=============== + +PHP static analysis +------------------- + +In the server repository psalm is used for static analysis of the PHP code. + +Required PHP extensions +^^^^^^^^^^^^^^^^^^^^^^^ + +The following PHP extensions are required to be installed and enabled to make psalm work: + +* acpu +* curl +* ftp +* gd +* iconv +* json +* ldap +* libxml +* mbstring +* openssl +* pdo +* simplexml +* sysvsem +* xmlreader +* zip + +Some of these are for optional features, but are still required to validate the code.