Skip to content
Snippets Groups Projects
Commit 5ff7bcf8 authored by Camille Simiand's avatar Camille Simiand
Browse files

Upgrade to PHP8.1 + fix Group entity ORM attribute

parent 986eae75
No related branches found
No related tags found
1 merge request!65tuleap-178-upgrading-php-from-7-4-to-8-1
Pipeline #846 failed
......@@ -4,7 +4,7 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-ctype": "*",
"ext-curl": "*",
"ext-iconv": "*",
......
FROM php:8.0-apache
FROM php:8.1-apache
COPY front.conf /etc/apache2/sites-enabled/000-default.conf
......
FROM php:8.0-apache
FROM php:8.1-apache
USER root
......@@ -44,12 +44,7 @@ RUN docker-php-ext-install -j$(nproc) \
gd \
pdo_mysql \
mysqli \
curl \
zip \
ctype \
iconv \
session \
tokenizer
zip
# Install opcache extension for PHP accelerator
RUN docker-php-ext-install opcache \
......
......@@ -32,7 +32,6 @@ class Group
* @var Collection<Capsule>
*/
#[ORM\ManyToMany(targetEntity:Capsule::class, inversedBy:'groups')]
#[ORM\JoinColumn(name:'author', referencedColumnName: 'id', nullable: false)]
private Collection $capsules;
public function __construct()
......
......@@ -20,7 +20,6 @@ class User implements UserInterface, LegacyPasswordAuthenticatedUserInterface
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type:'integer')]
#[ReadOnly]
private int $id;
#[ORM\Column(name: 'accept_gnl_conditions', type: 'boolean')]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment