Skip to content

Commit

Permalink
version 2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheexakat committed Oct 20, 2023
1 parent 291636f commit 39d8420
Show file tree
Hide file tree
Showing 10 changed files with 500 additions and 91 deletions.
3 changes: 0 additions & 3 deletions Annex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ List of external links mentioned in this documentation.

* `$HTTP_RAW_POST_DATA variable <https://www.php.net/manual/en/reserved.variables.httprawpostdata.php>`_
* `7z <https://www.7-zip.org/7z.html>`_
* `@deprecated <https://docs.phpdoc.org/latest/references/phpdoc/tags/deprecated.html>`_
* `[HttpFoundation] Make sessions secure and lazy #24523 <https://github.com/symfony/symfony/pull/24523>`_
* `Add Exakat To Your CI Pipeline <https://www.exakat.io/add-exakat-to-your-ci-pipeline/>`_
* `Ambassador <https://exakat.readthedocs.io/en/latest/Reports.html#ambassador>`_
Expand All @@ -77,7 +76,6 @@ List of external links mentioned in this documentation.
* `Data structures <http://docs.php.net/manual/en/book.ds.php>`_
* `DCDFLIB <https://people.sc.fsu.edu/~jburkardt/c_src/cdflib/cdflib.html>`_
* `Deprecate and remove INTL_IDNA_VARIANT_2003 <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003>`_
* `Deprecated features in PHP 7.2.x <https://www.php.net/manual/en/migration72.deprecated.php>`_
* `directive error_reporting <https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting>`_
* `Docker <http://www.docker.com/>`_
* `Docker image <https://hub.docker.com/r/exakat/exakat/>`_
Expand Down Expand Up @@ -141,7 +139,6 @@ List of external links mentioned in this documentation.
* `PMB <https://www.sigb.net/>`_
* `Povilas Korop <https://twitter.com/PovilasKorop>`_
* `Prepare for PHP migration with Exakat <https://www.exakat.io/prepare-for-php-migration-with-exakat/>`_
* `printf <https://www.php.net/printf>`_
* `PSR-3 <https://www.php-fig.org/psr/psr-3>`_
* `RabbitMQ AMQP client library <https://github.com/alanxz/rabbitmq-c>`_
* `rar <https://en.wikipedia.org/wiki/RAR_(file_format)>`_
Expand Down
28 changes: 24 additions & 4 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Release Note

Here is the release note of exakat.

**Version 2.6.1 (, 2023-10-19)**
**Version 2.6.2 (, 2023-11-04)**


+ Architecture
Expand All @@ -19,13 +19,33 @@ Here is the release note of exakat.
+

+ Analysis
+ Updated analysis : Use same types for comparisons was refactored
+ Updated analysis : Add Zero skips ?? and ?: when it is used to create default values
+ Updated analysis : Implode() args order was refactored with type support
+

+ Tokenizer
+

**Version 2.6.1 (, 2023-10-19)**


+ Cobbler
+ New Cobbler : Logical to In_array() conversion

+ Analysis
+ Updated analysis : Use same types for comparisons was refactored
+ Updated analysis : Add Zero skips ?? and ?: when it is used to create default values
+ Updated analysis : Implode() args order was refactored with type support
+ New analysis : report multiline expressions
+ New analysis : report usage of typed constants
+ Updated analysis : sprintf() argument counts is improved
+ Updated analysis : double instruction skips try, while, do while.
+ Updated analysis : useless instruction refactored clone expressions
+ Updated analysis : array Append in a list() call
+ Updated analysis : written only variables now take into account isset() too
+ Updated analysis : recursive functions don't report recursion via property or method call()
+ Updated analysis : Shell favorite
+ New analysis : Casting Method Favorite
+ Updated analysis : Ellipsis detection improved

**Version 2.6.0 (, 2023-10-04)**


Expand Down
2 changes: 1 addition & 1 deletion Introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Introduction
============

This is the documentation of the Exakat engine, version 2.6.0 (Build 1485), on Tue, 10 Oct 2023 08:53:17 +0000.
This is the documentation of the Exakat engine, version 2.6.1 (Build 1492), on Thu, 19 Oct 2023 14:02:40 +0000.

What is Exakat ?
----------------
Expand Down
59 changes: 59 additions & 0 deletions Reference/Cobblers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,65 @@ _____
+----------------+-------------------------------------------------------------------------------------------------------------------------+


.. _structures-logicaltoinarray:

.. _logical-to-in\_array():

Logical To in_array()
+++++++++++++++++++++
This cobbler turns lists of ``or`` calls into a in_array() call. This is a faster and more readable expression.

.. _logical-to-in\_array()-before:

Before
______
.. code-block:: php
<?php
if ($a == 1 || $a == 2) {
// doSomething()
}
?>
.. _logical-to-in\_array()-after:

After
_____
.. code-block:: php
<?php
if (in_array($a, [1, 2])) {
// doSomething()
}
?>
.. _logical-to-in\_array()-suggested-analysis:

Suggested Analysis
__________________

* :ref:`logical-to-in\_array`



.. _logical-to-in\_array()-specs:

Specs
_____

+----------------+-----------------------------+
| Short Name | Structures/LogicalToInarray |
+----------------+-----------------------------+
| Exakat version | 2.6.1 |
+----------------+-----------------------------+
| Available in | |
+----------------+-----------------------------+


.. _functions-makestaticfunction:

.. _make-static-closures-and-arrow-functions:
Expand Down

0 comments on commit 39d8420

Please sign in to comment.